author avatar

adithya.hebbar

Mon Oct 07 2024

https://Fly.io|Fly.io release_command

In https://Fly.io|Fly.io, the release_command is a special one-time command executed before deploying an app. It’s often used for tasks like running database migrations or other setup steps that need to happen before the app is fully launched. You can define it in your fly.toml file under the [deploy] section.

Example:


[deploy]
  release_command = "python manage.py migrate"


This ensures your migrations or other essential pre-deploy tasks run seamlessly during the deployment process!

#fly #db_migrations