1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mastodon_ynh.git synced 2024-09-03 19:46:02 +02:00

[enh] bundle and yarn install on restore

This commit is contained in:
nemsia 2017-05-26 17:51:08 +02:00
parent c78abc8b6c
commit c11dea6e72

View file

@ -153,11 +153,14 @@ ynh_secure_remove $final_path/mastodon_db.sql
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
# Upgrade Mastodon
#sudo su - $app <<RCOMMANDS
#cd ~/live
sudo su - $app <<RCOMMANDS
cd ~/live
bin/bundle install
yarn install --pure-lockfile
#RAILS_ENV=production bin/bundle exec rails db:migrate
#RAILS_ENV=production bundle exec rails assets:clean
#RAILS_ENV=production bin/bundle exec rails assets:precompile
#RCOMMANDS
RCOMMANDS
# Restore nginx configuration files
sudo cp -a ./nginx.conf "$nginx_conf"