- #!/bin/bash
- set -e
- [ -e '/app/.env' ] && { echo 'Existing .env detected. Please rename it temporarily before running the test container.' >&2; exit 1; }
- /scripts/setup_env
- source /app/.env
- export RAILS_ENV=test
- unset no_proxy
- bundle install --with test development --path vendor/bundle -j 4
- bundle exec rake db:create db:migrate
- bundle exec "$@"
|