Make sure the logfile exists

This commit is contained in:
Absurdon 2019-11-25 14:11:38 +01:00
parent 8dce3c8d6b
commit 2c34da556a
No known key found for this signature in database
GPG key ID: E383BEAE6F394B2F

View file

@ -7,5 +7,9 @@ rm -rf /var/www/public/assets
mv /home/web/assets /var/www/public/
chown -R web:web /var/www/public
LOG_FILE = "/var/www/log/$RAILS_ENV.log"
touch $LOG_FILE
chown web:web $LOG_FILE
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