ruby-on-rails-server.docker-entrypoint.sh Maven / Gradle / Ivy
#!/bin/sh
set -e
if [ "$1" = 'bin/rails' ] && [ "$2" = 's' ]; then
rm -f /myapp/tmp/pids/server.pid
bin/rails db:migrate
fi
exec "$@"
#!/bin/sh
set -e
if [ "$1" = 'bin/rails' ] && [ "$2" = 's' ]; then
rm -f /myapp/tmp/pids/server.pid
bin/rails db:migrate
fi
exec "$@"