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 ../..
|
2021-03-02 15:17:08 +00:00
|
|
|
RUBYOPT="-W0" bundle exec puma -C config/puma/production.rb
|