ensl.org/script/entry.sh
Ari Timonen 059be8a76a Backport fixes from rails4 branch
Fix row issue in profiles, fix tests.
2020-04-06 07:00:42 +03:00

15 lines
392 B
Bash
Executable file

#!/bin/bash
cd /var/www
source /var/www/.env
if [ $RAILS_ENV = "production" ]; then
rm -rf /var/www/public/assets
mv /home/web/assets /var/www/public/
chown -R web:web /var/www
fi
su -c "bundle config github.https true; cd /var/www && bundle install --path /var/bundle --jobs 4" -s /bin/bash -l web
su -c "cd /var/www && bundle exec puma -C config/puma.rb" -s /bin/bash -l web
bash