Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 859 Bytes

README.md

File metadata and controls

47 lines (29 loc) · 859 Bytes

Splitwizz service

Development setup

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

Production build

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

Generate keys

openssl rand -base64 32