mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-14 17:01:20 +00:00
11 lines
307 B
Bash
Executable file
11 lines
307 B
Bash
Executable file
#!/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
|
|
|
|
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
|