mirror of
https://github.com/YunoHost-Apps/snweb_ynh.git
synced 2024-09-03 20:26:22 +02:00
Update install
This commit is contained in:
parent
08038e4db9
commit
c63e663532
2 changed files with 8 additions and 4 deletions
|
@ -11,7 +11,8 @@ Environment=RAILS_ENV=production
|
|||
Environment="PORT=__PORT_WEB__"
|
||||
#ExecStart=/opt/yunohost/snserver/rails s >> /var/log/snserver/snserver.log 2>&1
|
||||
#ExecStart=__FINALPATH__/bin/rails s -e production >> /var/log/__APP__/__APP__.log 2>&1
|
||||
ExecStart=/opt/rbenv/versions/2.6.5/bin/bundle exec puma -C config/puma.rb
|
||||
#ExecStart=/opt/rbenv/versions/2.6.5/bin/bundle exec puma -C config/puma.rb
|
||||
ExecStart=/opt/rbenv/versions/2.6.5/bin/rails s -b 0.0.0.0 >> /var/log/__APP__/__APP__.log 2>&1
|
||||
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||||
StandardError=syslog
|
||||
Restart=always
|
||||
|
|
|
@ -176,7 +176,9 @@ ynh_script_progression --message="Installing Ruby..." --time --weight=321
|
|||
ruby_version="2.6.5"
|
||||
ynh_install_ruby --ruby_version=$ruby_version
|
||||
/opt/rbenv/versions/$ruby_version/bin/gem update --system
|
||||
/opt/rbenv/versions/$ruby_version/bin/gem install bundler:1.17.1 --no-document
|
||||
/opt/rbenv/versions/$ruby_version/bin/gem install bundler --no-document
|
||||
/opt/rbenv/versions/$ruby_version/bin/gem install bundle --no-document
|
||||
/opt/rbenv/versions/$ruby_version/bin/gem install rails --no-document
|
||||
|
||||
#=================================================
|
||||
# MODIFY A CONFIG FILE
|
||||
|
@ -214,10 +216,11 @@ pushd "$final_path/live"
|
|||
ynh_use_nodejs
|
||||
# sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/$ruby_version/bin/bundle config set path 'vendor/bundle'
|
||||
# sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/$ruby_version/bin/bundle config set with 'development'
|
||||
sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/$ruby_version/bin/bundle install --path "vendor/bundle"
|
||||
# sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/$ruby_version/bin/bundle install --path "vendor/bundle"
|
||||
#sudo -u "$app" env PATH=$PATH /opt/rbenv/versions/$ruby_version/bin/bundle update --bundler
|
||||
sudo -u "$app" env PATH=$PATH yarn install --pure-lockfile
|
||||
# sudo -u "$app" env PATH=$PATH yarn install --pure-lockfile
|
||||
#sudo -u "$app" env PATH=$PATH yarn run build --pure-lockfile
|
||||
sudo -u "$app" npm run build
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue