Keep a One-Person SaaS Running While You Sleep
In this article
Running a one-person SaaS means you are the entire support team, the only developer, and the sole operator. When you sleep, the business still needs to handle payments, keep the app online, and respond to urgent issues. This guide walks you through the practical steps to automate monitoring, alerting, backups, and support so you can rest without the fear of waking up to a disaster.
What You'll Need
- A cloud server or hosting platform (e.g., AWS, DigitalOcean, Heroku, or a VPS) where your app is already deployed.
- Access to your DNS provider (to set up status pages and monitoring checks).
- A payment processor account (Stripe, PayPal, etc.) and the ability to create webhooks.
- A notification channel that can reach you immediately: email, SMS, or a mobile push app like Pushover or Telegram.
- Basic familiarity with your server's command line and cron jobs.
Step-by-Step
- Set up external uptime monitoring. Use a service like UptimeRobot, Pingdom, or a simple cron job on another server to ping your app's health endpoint every minute. Configure it to alert you via email and SMS (or push notification) the moment your site goes down. Don't rely on your own server to monitor itself—if it crashes, nothing will notify you.
- Create a health check endpoint in your app. This endpoint should verify that your database connection, cache, and critical external APIs are reachable. For example, in Node.js:
app.get('/health', (req, res) => { /* check db, redis, etc. */ res.status(200).send('ok'); });. Your uptime monitor should hit this endpoint, not just the homepage, so you catch partial failures. - Automate backups. Schedule daily backups of your database and file storage. Use cron jobs or a managed backup service. Store backups offsite (e.g., S3, Google Cloud Storage) with a retention policy (keep daily for 7 days, weekly for a month). Test restoring a backup at least once to ensure they work.
- Set up payment failure handling. Configure your payment processor to automatically retry failed subscriptions (Stripe does this by default with smart retries). Enable webhooks for events like
invoice.payment_failedandcustomer.subscription.deleted. Have your app send a polite email to the customer asking them to update their payment method, and notify you only if a high-value account churns. - Implement an error tracking tool. Integrate a service like Sentry or LogRocket into your app. It captures unhandled exceptions and logs them with stack traces. Set up alerts so you get an email or push notification when a new error appears, especially if it affects a large number of users.
- Create a status page. Use a service like Statuspage (or a simple static page) that shows the current status of your app. Update it automatically based on your uptime monitor. This way, if users see an outage, they know you're aware and working on it—reducing support tickets.
- Set up a support inbox with auto-replies. Use a shared email like support@yourdomain.com. Set an auto-reply that acknowledges the ticket and provides links to your status page and knowledge base. Use a helpdesk tool (Zendesk, Freshdesk, or even a simple CRM) to organize tickets. For urgent issues, create a rule that flags emails with words like "down" or "error" and sends you a push notification.
- Write a runbook. Document common incidents and their fixes: database connection issues, server reboot steps, how to roll back a deployment, etc. Keep it in a place you can access from your phone (a wiki, a Google Doc, or a private GitHub repo). This saves you time when you're half-asleep.
- Automate server security updates. Use a tool like unattended-upgrades on Ubuntu to install security patches automatically. Set up a weekly cron job to run
apt update && apt upgrade(with automatic reboot if needed). Monitor the logs to ensure nothing breaks. - Test your disaster recovery plan. Once a month, simulate a failure: stop your server, restore from a backup, and see how long it takes. This ensures your backups and runbook actually work when you need them.
Common Mistakes
- Monitoring only the homepage. If your homepage is cached but your API is down, you won't know until users complain. Always monitor a health endpoint that checks critical dependencies.
- Ignoring silent failures. Some errors don't trigger alerts because they're caught in your code. Make sure your error tracker captures all exceptions, including those in background jobs.
- Backing up to the same server. If your server dies, you lose both the app and the backups. Always store backups offsite.
- Not testing restores. A backup that can't be restored is useless. Test restores regularly.
- Over-alerting. If you get a notification for every minor error, you'll start ignoring them. Set thresholds—only alert on new errors or errors that affect multiple users.
- Forgetting about time zones. If your users are in different time zones, your "sleep" might be their peak usage. Adjust your monitoring thresholds accordingly.
Tips
- Use a paging service like PagerDuty or Opsgenie for critical alerts—they escalate if you don't acknowledge within a few minutes.
- Set up a separate Slack channel (or Discord) for alerts and status updates. It's easier to scan than email.
- Consider a maintenance mode page that you can activate quickly if you need to take the app down for a fix.
- Use a tool like Healthchecks.io to monitor your cron jobs themselves—so you know if a backup or cleanup job fails.
- Keep your dependencies up to date, but test updates in a staging environment first to avoid breaking changes.
- If you have a mobile app, set up push notifications for critical alerts via a service like Pushover or a custom Telegram bot.
Troubleshooting
- You didn't get an alert when the site went down. Check your uptime monitor's configuration: is it checking the correct URL? Are your notification settings correct? Test by temporarily stopping your server and seeing if the alert fires.
- Alerts are too noisy. Adjust thresholds in your error tracker and monitoring tool. For example, only alert if an error occurs more than 5 times in 10 minutes.
- Backup restore fails. Check that the backup file is complete and that you're using the correct database version. Document the exact restore commands in your runbook.
- Payment webhooks aren't being received. Verify that your endpoint is publicly accessible and that you're returning a 200 response quickly. Check the webhook logs in your payment dashboard.
- Server runs out of disk space. Set up disk usage monitoring (e.g., with a cron job that checks
df -hand alerts if usage is above 80%). Clean up old logs and backups automatically. - Your auto-reply isn't sending. Check that your email service is not rate-limited and that the auto-reply rule is active. Test with a dummy email.
Frequently Asked Questions
- Do I need a dedicated monitoring server? No, you can use a free tier of a monitoring service. The key is that it's external to your app's infrastructure.
- How often should I back up? At least daily. If your data changes frequently, consider hourly backups or continuous replication.
- What if I can't afford paid monitoring tools? Free tiers of UptimeRobot (50 monitors) and Sentry (5k errors/month) are usually enough for a small SaaS. You can also set up cron-based alerts with free services like Healthchecks.io.
- Should I have an on-call schedule even though I'm solo? Yes, but you are always on-call. The goal is to minimize false alarms so you only wake up for real problems.
- How do I handle users who need help while I'm asleep? Provide a comprehensive knowledge base and FAQ. Use an AI chatbot (like a simple rule-based bot) to answer common questions. Set expectations in your auto-reply that responses may be delayed.
- What's the most important thing to automate first? Uptime monitoring and backups. Without them, you could lose data or have a long outage without knowing.