Files
baclight/bin/docker-entrypoint-production
T

15 lines
324 B
Bash
Raw Normal View History

#!/bin/bash -e
2023-09-30 21:08:14 -07:00
echo "entrypoint"
echo "${*}"
# If running the rails server then create or migrate existing database
2023-09-30 21:08:14 -07:00
# bundle exec puma -C config/puma.rb
# if [ "${*}" == "./bin/rails server" ]; then
# ./bin/rails db:prepare
# fi
2023-09-30 21:08:14 -07:00
if [ -z "$RENDER" ]; then echo "var is unset"; else bin/rails db:migrate; fi
2023-09-30 20:52:18 -07:00
exec "${@}"