DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

fc94ea592f1e8c226f5154b5a6a4d783bdfdb36c — Jonni Liljamo 1 year, 9 months ago 049bf0b
chore(api): update dev scripts
3 files changed, 6 insertions(+), 2 deletions(-)

M api/scripts/dev-launch.sh
M api/scripts/dev-migr-redo.sh
A api/scripts/dev-migr-reset.sh
M api/scripts/dev-launch.sh => api/scripts/dev-launch.sh +3 -1
@@ 1,6 1,8 @@
#!/bin/sh

export LAURELIN_DB_URL=postgres://laurelin:laurelin@localhost:5432/laurelin
export LAURELIN_DB_URL=postgres://laurelin:laurelin@192.168.68.123:5432/laurelin
export LAURELIN_REDIS_URL=redis://192.168.68.123:6379
export LAURELIN_COOKIE_KEY=aslkdj298u2p1quak
export RUST_LOG=info

cargo run

M api/scripts/dev-migr-redo.sh => api/scripts/dev-migr-redo.sh +1 -1
@@ 1,2 1,2 @@
#!/bin/sh
~/.cargo/bin/diesel migration run --database-url postgres://laurelin:laurelin@localhost:5432/laurelin
~/.cargo/bin/diesel migration redo --database-url postgres://laurelin:laurelin@192.168.68.123:5432/laurelin

A api/scripts/dev-migr-reset.sh => api/scripts/dev-migr-reset.sh +2 -0
@@ 0,0 1,2 @@
#!/bin/sh
~/.cargo/bin/diesel database reset --database-url postgres://laurelin:laurelin@192.168.68.123:5432/laurelin