Make sure to have a local Postgres DB called splitwizz
, run the migration scripts:
cargo install sqlx-cli
sqlx migrate run
And run the development environment with the following command:
cargo watch -x run
Before making the image build, since sqlx
will need to run offline during the build phase in the Docker environment, make sure to build the offline data file with:
cargo sqlx prepare
After that just go ahead and build the production image, make sure to bump both versions:
./build-docker.sh
And the migrations image as well:
./build-docker-migrations.sh
After checking that everything is good you can run the same commands now with the publish flag on -p
openssl rand -base64 32