You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
933 B

#!/bin/sh
set -e
bundle config set without 'development test'
bundle check || bundle install
echo ===========================================
echo ${RAILS_ENV}
echo ===========================================
echo Create Database
echo ${RAILS_ENV}
echo ===========================================
bundle exec rails db:create RAILS_ENV=${RAILS_ENV} || true
echo ===========================================
echo ${RAILS_ENV}
echo ===========================================
bundle exec rails db:migrate RAILS_ENV=${RAILS_ENV} || true
echo ===========================================
echo ${RAILS_ENV}
echo ===========================================
bundle exec rails db:seed RAILS_ENV=${RAILS_ENV} || true
echo ===========================================
echo ${PORT}
echo ===========================================
bundle exec puma -C config/puma.rb