Skip to content

Commit 02fd861

Browse files
committed
Allow database preparation with environment variable
1 parent d9ad063 commit 02fd861

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/docker-entrypoint

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/bin/bash -e
22

33
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
4-
# prepare database
4+
SAGITTARIUS_PREPARE_DATABASE="true"
5+
fi
6+
7+
if [ "${SAGITTARIUS_PREPARE_DATABASE}" == "true" ]; then
58
bundle exec rake db:prepare
69
FILTER=01_application_settings bundle exec rake db:seed_fu
710
fi

0 commit comments

Comments
 (0)