aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-03-21 03:26:05 +0100
committeryalh76 <yalh@yahoo.com>2019-03-21 03:26:05 +0100
commit3cea0bdc57d60c7f20320394f272b5fd41fd2a1e (patch)
tree77ed885e55510225277709d16bd2e979cab92794 /scripts
parent27e8bed40d70c4f4a7f438b680c2cdc692cfeca6 (diff)
downloadmastodon_ynh-3cea0bdc57d60c7f20320394f272b5fd41fd2a1e.tar.gz
mastodon_ynh-3cea0bdc57d60c7f20320394f272b5fd41fd2a1e.tar.bz2
mastodon_ynh-3cea0bdc57d60c7f20320394f272b5fd41fd2a1e.zip
fix install
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/install b/scripts/install
index beda892..bac4c95 100644
--- a/scripts/install
+++ b/scripts/install
@@ -155,11 +155,14 @@ ynh_system_user_create $app $final_path
#=================================================
# SPECIFIC SETUP
#=================================================
-# INSTALLING RUBY
+# INSTALLING RUBY AND BUNDLER
#=================================================
ynh_install_ruby --ruby_version=2.6.0
+/opt/rbenv/versions/2.6.0/bin/gem update --system
+/opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
+
#=================================================
# MODIFY A CONFIG FILE
#=================================================
@@ -199,8 +202,6 @@ chown -R "$app": "$final_path"
pushd "$final_path/live"
ynh_use_nodejs
- #sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system
- sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test
sudo -u "$app" env PATH=$PATH yarn install --pure-lockfile
sudo -u "$app" echo "SAFETY_ASSURED=1">> .env.production