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

Use of rbenv 2.6.0

This commit is contained in:
anmol 2019-01-22 13:02:55 +05:30
parent 994c1f3c0b
commit f281b053c8

View file

@ -206,9 +206,9 @@ chown -R "$app": "$final_path"
(
cd "$final_path/live"
su mastodon <<INSTALL
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler:1.16.6
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler:1.16.6 --no-ri --no-rdoc
$final_path/.rbenv/versions/2.6.0/bin/gem install bundler
$final_path/.rbenv/versions/2.6.0/bin/bundle install bundler \
$final_path/.rbenv/versions/2.6.0/bin/bundle install \
-j$(getconf _NPROCESSORS_ONLN) \
--deployment --without development test
yarn install --pure-lockfile
@ -240,8 +240,8 @@ account = Account.create!(username: '$admin_mastodon')
user = User.create!(email: '$admin_mastodon_mail', password: '$admin_pass', account: account)
CREATEUSER
su mastodon <<SETADMIN
RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/tootctl accounts modify $admin_mastodon --confirm
RAILS_ENV=production $final_path/.rbenv/versions/2.6.0/bin/tootctl accounts modify $admin_mastodon --role admin
RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --confirm
RAILS_ENV=production bin/tootctl accounts modify $admin_mastodon --role admin
SETADMIN
)