mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Fix install on v2 (#58)
* Fix install v2.0 ruby version * Fix install on v2 add "SAFETY_ASSURED=1" on .env.production
This commit is contained in:
parent
a8a2874864
commit
5295228ca3
1 changed files with 5 additions and 4 deletions
|
@ -122,17 +122,17 @@ COMMANDS
|
||||||
|
|
||||||
# Install ruby-build
|
# Install ruby-build
|
||||||
sudo su - $app <<RCOMMANDS
|
sudo su - $app <<RCOMMANDS
|
||||||
/opt/mastodon/.rbenv/bin/rbenv install 2.4.1
|
/opt/mastodon/.rbenv/bin/rbenv install 2.4.2
|
||||||
/opt/mastodon/.rbenv/versions/2.4.1/bin/ruby -v
|
/opt/mastodon/.rbenv/versions/2.4.2/bin/ruby -v
|
||||||
RCOMMANDS
|
RCOMMANDS
|
||||||
|
|
||||||
# Create symlink for ruby
|
# 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
|
# Install Mastodon
|
||||||
sudo su - $app <<MCOMMANDS
|
sudo su - $app <<MCOMMANDS
|
||||||
pushd ~/live
|
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
|
bin/bundle install --deployment --without development test
|
||||||
yarn install --production
|
yarn install --production
|
||||||
MCOMMANDS
|
MCOMMANDS
|
||||||
|
@ -168,6 +168,7 @@ sudo sed -i "s@#SMTP_OPENSSL_VERIFY_MODE=peer@SMTP_OPENSSL_VERIFY_MODE=none@g" "
|
||||||
# Preconfig CSS & JS
|
# Preconfig CSS & JS
|
||||||
sudo su - $app <<CCOMMANDS
|
sudo su - $app <<CCOMMANDS
|
||||||
pushd ~/live
|
pushd ~/live
|
||||||
|
echo "SAFETY_ASSURED=1">> .env.production
|
||||||
RAILS_ENV=production bin/bundle exec rails db:setup
|
RAILS_ENV=production bin/bundle exec rails db:setup
|
||||||
RAILS_ENV=production bin/bundle exec rails --trace assets:precompile
|
RAILS_ENV=production bin/bundle exec rails --trace assets:precompile
|
||||||
CCOMMANDS
|
CCOMMANDS
|
||||||
|
|
Loading…
Reference in a new issue