DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: 254cb7641e8779f92a98b1764a727d86e5987793 deck-builder/api/README.md -rw-r--r-- 708 bytes
254cb764Jonni Liljamo docs(api): note about new migrations 1 year, 8 months ago

#API for laurelin

Use the RUST_LOG environment variable to configure logging level. Defaults to RUST_LOG=info in the default docker-compose.yaml.

#Scripts

scripts/dev-start-db.sh can be used to manage a PostgreSQL database in a development environment. Uses docker-compose.dev.yaml to set it up.

scripts/dev-migr.sh can be used to run migration in the development database that the other script sets up.

scripts/dev-migr-redo.sh can be used to redo the migrations. As in, it will run down.sql, and then up.sql again, useful for making sure migrations work correctly, and for experimenting.

#Misc Notes

#Generate new migrations

~/.cargo/bin/diesel migration generate migration_name