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.
e.g: ssh root@<yoururl>.com
pull your code from your preferred branch.
run
mix deps.get
to update your dependencies. You can then either runmix ecto.reset
ormix ecto.migrate
to 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.)run
MIX_ENV=<env> mix release
to update your release folder.restart your systemctl service.
Check the endpoint to see if it works as intended by checking
/
Top comments (0)