App deployment in production
When you deploy app into production, you might need to adjust environment to new features or changes introduced in development. For example database changes, new required folders etc.
Best practice is to have these changes run automatically on deploy and DollarDeploy allows this by enabling you to specify additional commands what are executed when you deploy your app.
Pre start shell command
This usually upgrades database, or changes permissions on the host.
Examples
npx prisma db push --skip-generate
Specify this command to upgrade database, if you are using Prisma ORMnpm i drizzle-kit && npx drizzle-kit push
Run Drizzle ORM migrationschmod 0777 data
Fix Docker data folder permissionsdocker compose exec web python manage.py migrate
Run Django (Python) migrations