aboutsummaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-03-20 04:28:13 +0100
committeryalh76 <yalh@yahoo.com>2019-03-20 04:28:13 +0100
commitd903267166295dae52a0165107da0bc64411e651 (patch)
tree256e03fa63ae378043410a1c34a8fd8635bbcf44 /scripts/install
parent5885b4cf7d8fcbd5d9019243235e9097c3fcac6b (diff)
downloadmastodon_ynh-d903267166295dae52a0165107da0bc64411e651.tar.gz
mastodon_ynh-d903267166295dae52a0165107da0bc64411e651.tar.bz2
mastodon_ynh-d903267166295dae52a0165107da0bc64411e651.zip
add env PATH=$PATH
Diffstat (limited to 'scripts/install')
-rw-r--r--scripts/install13
1 files changed, 7 insertions, 6 deletions
diff --git a/scripts/install b/scripts/install
index abded5b..e8e8b18 100644
--- a/scripts/install
+++ b/scripts/install
@@ -202,15 +202,16 @@ chown -R "$app": "$final_path"
(
cd "$final_path/live"
su mastodon <<INSTALL
- /opt/rbenv/versions/2.6.0/bin/gem update --system
- /opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
- /opt/rbenv/versions/2.6.0/bin/bundle install \
+ ynh_use_nodejs
+ env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem update --system
+ env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/gem install bundler --no-document
+ env PATH=$PATH /opt/rbenv/versions/2.6.0/bin/bundle install \
-j$(getconf _NPROCESSORS_ONLN) \
--deployment --without development test
- yarn install --pure-lockfile
+ env PATH=$PATH yarn install --pure-lockfile
echo "SAFETY_ASSURED=1">> .env.production
- RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails db:migrate --quiet
- RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile --quiet
+ env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails db:migrate --quiet
+ env PATH=$PATH RAILS_ENV=production /opt/rbenv/versions/2.6.0/bin/bundle exec rails assets:precompile --quiet
INSTALL
)