diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-08-07 09:56:23 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-07 12:11:14 +0100 |
commit | c8308d8705fba117e29eb6154096bba7db7e06a7 (patch) | |
tree | 06562b75d8b243800c3cb2361c8dd2570e7a4151 | |
parent | 6bfcd9f8dc3ba8b45f04d885aa7fbaf38f54cb35 (diff) |
Let ugly generate the full path to the app
Usage of the $vhost_dir and $vcspath is enough to get the full
path to the app without making the assumption that the app is in
a directory named ‘alaveteli’
-rwxr-xr-x | config/sysvinit-thin.ugly | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/sysvinit-thin.ugly b/config/sysvinit-thin.ugly index 1d2bb850a..9661b77ef 100755 --- a/config/sysvinit-thin.ugly +++ b/config/sysvinit-thin.ugly @@ -25,7 +25,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"/alaveteli && bundle exec thin \ + cd "$SITE_HOME" && bundle exec thin \ --environment=production \ --user="$USER" \ --group="$USER" \ |