- Make sure to run sqlx local snapshot
cargo sqlx prepare
- Run clippy and tests
cargo clippy && cargo test
-
Make sure in DigitalOcean db is open to external connection. You will need this security disabled in order to run migrations if there are any.
-
Push to deploy and watch deployment in DigitalOcean.
- If any migrations, run the following
DATABASE_URL=YOUR-DIGITAL-OCEAN-DB-CONNECTION-STRING sqlx migrate run
- Also run sync method
https://f3boiseapi-cycjv.ondigitalocean.app/sync