ensl.org/script/entry.sh

16 lines
387 B
Bash
Raw Normal View History

#!/bin/bash
env
cd /var/www
source /var/www/.env
rm -rf /var/www/public/assets
mv /home/web/assets /var/www/public/
chown -R web:web /var/www/public
2019-11-25 14:03:35 +00:00
LOG_FILE="/var/www/log/$RAILS_ENV.log"
2019-11-25 13:11:38 +00:00
touch $LOG_FILE
chown web:web $LOG_FILE
2019-09-07 18:46:30 +00:00
su -c "cd /var/www && bundle exec rake assets:precompile" -s /bin/bash -l web
su -c "cd /var/www && bundle exec puma -C config/puma.rb" -s /bin/bash -l web