diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-29 17:24:44 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-29 17:24:44 +0100 |
commit | 2b77e4521787d1024e8e4c710b277e435a3ecd77 (patch) | |
tree | b9867bdb56b75130317f2016176117dc36dcb83e /config/sysvinit-thin.ugly | |
parent | d801fff4325a42f1bbbb273ac0a4597c32b4dd4b (diff) |
Allow RAILS_ENV to be set in sysvinit-thinhotfix/0.19.1hotfix/0.19.0.2
Install script on AWS uses development mode by default
Diffstat (limited to 'config/sysvinit-thin.ugly')
-rwxr-xr-x | config/sysvinit-thin.ugly | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/sysvinit-thin.ugly b/config/sysvinit-thin.ugly index cc604d994..b333f3738 100755 --- a/config/sysvinit-thin.ugly +++ b/config/sysvinit-thin.ugly @@ -17,6 +17,7 @@ NAME=!!(*= $site *)!! SITE_HOME=!!(*= $vhost_dir *)!!/!!(*= $vcspath *)!! DESC="Alaveteli app server" USER=!!(*= $user *)!! +RAILS_ENV=!!(*= $rails_env *)!! set -e @@ -26,7 +27,7 @@ su -l -c "cd $SITE_HOME && bundle exec thin --version &> /dev/null || exit 0" $U start_daemon() { echo -n "Starting $DESC: " cd "$SITE_HOME" && bundle exec thin \ - --environment=production \ + --environment=$RAILS_ENV \ --user="$USER" \ --group="$USER" \ --address=127.0.0.1 \ |