test_env 403 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. [ -e '/app/.env' ] && { echo 'Existing .env detected. Please rename it temporarily before running the test container.' >&2; exit 1; }
  4. /scripts/setup_env
  5. source /app/.env
  6. export RAILS_ENV=test
  7. unset no_proxy
  8. bundle config set --local path vendor/bundle
  9. bundle config set --local without 'test development'
  10. bundle install -j 4
  11. bundle exec rake db:create db:migrate
  12. bundle exec "$@"