ensl.org/script/entry.sh

9 lines
273 B
Bash
Raw Normal View History

#!/bin/bash
cd /var/www
chown -R web:web /var/www
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 && source .env.dev && bundle exec puma -C config/puma.rb" -s /bin/bash -l web
bash