Services and databases
Keep an app, worker or database running on the pod, and bring it back after a crash or restart.
A running program does not survive a pod restart on its own. Tell the AI which ones must always be up, and it registers them as startup commands: commands Podway runs every time the pod starts.
Run the app with the queue worker. Check one job end to end, and keep both running after restarts.
What is already there
- Postgres. Every pod runs a Postgres database (
app) on the pod itself, with its data kept on the pod's disk. The AI uses it instead of installing another. - The dev server. In a workspace pod, the dev server (the program that runs your app while you build it) serves your preview. Podway restarts it if it crashes.
- App pods get Watch app (checks every 5 minutes and restarts a stopped app), Automatic app updates and a Restart app button. See Hosting an app.
Where your data should live
Postgres and files on the pod are fine for prototypes, internal tools and personal apps. Podway backs the pod up every night (Backups), but a copy you hold yourself is safer: ask the AI to commit code to GitHub and to export data you cannot afford to lose. For production traffic, compliance or independent backups, use a managed database or service.
Check that it works
"Keep the worker running" is only half a request. Ask the AI to run a real job or health check and to tell you where failures will show up.