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

[fix] Upgrade nodejs + conf protobuf

Fix mastodon 1.4 upgrade
This commit is contained in:
nemsia 2017-05-21 14:24:18 +02:00
parent e6a5b2bc5e
commit 3439592f1b

View file

@ -55,9 +55,16 @@ pushd ~/live
git checkout $(git tag | tail -n 1)
SWITCHCOMMANDS
# Upgrade Node.js
pushd /opt
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install -y nodejs
popd
# Apply Mastodon upgrade
sudo su - $app <<COMMANDS
pushd ~/live
pkg-config libprotobuf-dev protobuf-compiler
bin/bundle install
yarn install --pure-lockfile
RAILS_ENV=production bundle exec rails assets:clean