From 8a02b91eeb7130dd655d96675933dcd5adc6b1f9 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 30 Sep 2014 11:47:02 +1000 Subject: [PATCH] FIX: rails c no longer working --- templates/web.template.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/web.template.yml b/templates/web.template.yml index 5016a1a..fb2518e 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -122,7 +122,7 @@ run: chmod: +x contents: | #!/bin/bash - (cd /var/www/discourse && RAILS_ENV=production sudo -E -u discourse bundle exec script/discourse "$@") + (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/discourse "$@") - file: path: /usr/local/bin/rails @@ -132,9 +132,9 @@ run: # If they requested a console, load pry instead if [ "$@" == "c" -o "$@" == "console" ] then - (cd /var/www/discourse && RAILS_ENV=production sudo -E -u discourse bundle exec pry -r ./config/environment) + (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec pry -r ./config/environment) else - (cd /var/www/discourse && RAILS_ENV=production sudo -E -u discourse bundle exec script/rails "$@") + (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec script/rails "$@") fi - file: @@ -142,7 +142,7 @@ run: chmod: +x contents: | #!/bin/bash - (cd /var/www/discourse && RAILS_ENV=production sudo -E -u discourse bundle exec bin/rake "$@") + (cd /var/www/discourse && RAILS_ENV=production sudo -H -E -u discourse bundle exec bin/rake "$@") - file: path: /etc/update-motd.d/10-web -- 2.25.1