rosa-build/entrypoint.sh

20 lines
418 B
Bash
Raw Normal View History

2021-03-01 14:54:44 +00:00
#!/bin/sh
set -ex
2021-03-02 15:02:46 +00:00
cd /app/rosa-build
2021-03-01 14:54:44 +00:00
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