This is a personalized report that explains how to deploy an api to a Digital Ocean ubuntu server with minimal technical explanation.
- Log into your server with your ssh credentials.
pull your code from your preferred branch.
mix deps.getto update your dependencies. You can then either run
mix ecto.migrateto reset/update your database depending on what you want to do. (You may need to disable any active services using the database during this time.)
MIX_ENV=<env> mix releaseto update your release folder.
restart your systemctl service.
Check the endpoint to see if it works as intended by checking