rosa-build/entrypoint.sh

18 lines
398 B
Bash
Raw Normal View History

2021-03-01 14:54:44 +00:00
#!/bin/sh
set -ex
if [ -f /MIGRATE ]
then
bundle exec rake db:migrate
rm /MIGRATE
fi
rm -rf public/assets/*
bundle exec rake assets:precompile
cd public/assets
rm -f new_application.css new_application.js
ln -sv new_application*.css new_application.css
ln -sv new_application*.js new_application.js
cd ../..
RUBYOPT="-W0" bundle exec puma -C /rosa-build/config/puma/production.rb