Fix install v2.0 ruby version
This commit is contained in:
parent
1b9ee91269
commit
785edef7e4
1 changed files with 4 additions and 4 deletions
|
|
@ -122,17 +122,17 @@ COMMANDS
|
|||
|
||||
# Install ruby-build
|
||||
sudo su - $app <<RCOMMANDS
|
||||
/opt/mastodon/.rbenv/bin/rbenv install 2.4.1
|
||||
/opt/mastodon/.rbenv/versions/2.4.1/bin/ruby -v
|
||||
/opt/mastodon/.rbenv/bin/rbenv install 2.4.2
|
||||
/opt/mastodon/.rbenv/versions/2.4.2/bin/ruby -v
|
||||
RCOMMANDS
|
||||
|
||||
# Create symlink for ruby
|
||||
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.1/bin/ruby /usr/bin/ruby || true
|
||||
sudo ln -s /opt/mastodon/.rbenv/versions/2.4.2/bin/ruby /usr/bin/ruby || true
|
||||
|
||||
# Install Mastodon
|
||||
sudo su - $app <<MCOMMANDS
|
||||
pushd ~/live
|
||||
/opt/mastodon/.rbenv/versions/2.4.1/bin/gem install bundler
|
||||
/opt/mastodon/.rbenv/versions/2.4.2/bin/gem install bundler
|
||||
bin/bundle install --deployment --without development test
|
||||
yarn install --production
|
||||
MCOMMANDS
|
||||
|
|
|
|||
Loading…
Reference in a new issue