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:
parent
e6a5b2bc5e
commit
3439592f1b
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue