Files
dawarich/dev-docker-entrypoint.sh

15 lines
250 B
Bash

#!/bin/sh
set -e
echo "Environment: $RAILS_ENV"
# install missing gems
bundle check || bundle install --jobs 20 --retry 5
# Remove pre-existing puma/passenger server.pid
rm -f $APP_PATH/tmp/pids/server.pid
# run passed commands
bundle exec ${@}