File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11*
2+ ! migrations
23! src
34! Cargo. *
45! githubuser-backup.pg
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ services:
44 build :
55 context : .
66 target : builder
7- command : ./setup-db.sh && cargo run --release --locked
7+ command : ./setup-db.sh cargo run --release --locked
88 depends_on :
99 - db
1010 ports :
Original file line number Diff line number Diff line change 22
33set -xe
44
5- export DATABASE_URL=" postgres://postgres:ughfineokifitsfordebugging@localhost:54320/rfcbot"
5+ DATABASE_URL=" ${DATABASE_URL :- postgres:// postgres: ughfineokifitsfordebugging@ localhost: 54320/ rfcbot} "
66
77until psql -d " $DATABASE_URL " -c ' \q' ; do
88 >&2 echo " Postgres is unavailable - sleeping"
1414diesel database setup
1515diesel migration run
1616psql -q -d " $DATABASE_URL " --file ./githubuser-backup.pg
17+
18+ exec " $@ "
You can’t perform that action at this time.
0 commit comments