From: Sam Date: Tue, 30 Sep 2014 01:47:02 +0000 (+1000) Subject: FIX: rails c no longer working X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8a02b91eeb7130dd655d96675933dcd5adc6b1f9;p=discourse_docker.git FIX: rails c no longer working --- 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