Production Build Working
This commit is contained in:
@@ -5,9 +5,10 @@ if [ -z "${LD_PRELOAD+x}" ] && [ -f /usr/lib/*/libjemalloc.so.2 ]; then
|
||||
export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2)"
|
||||
fi
|
||||
|
||||
# If running the rails server then create or migrate existing database
|
||||
if [ "${1}" == "./bin/rails" ] && [ "${2}" == "server" ]; then
|
||||
./bin/rails db:prepare
|
||||
# If running the rails server then migrate existing database
|
||||
if [ "${1}" == "bundle" ] && [ "${2}" == "exec" ] && [ "${3}" == "puma" ]; then
|
||||
echo "running migrations..."
|
||||
./bin/rails db:migrate
|
||||
fi
|
||||
|
||||
rm -f /usr/src/app/tmp/pids/server.pid
|
||||
|
||||
Reference in New Issue
Block a user