Skip to content

Commit

Permalink
update apps directory location for deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
molawson committed Jan 21, 2013
1 parent 1fd24dc commit bcf8d51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/nginx.conf
Expand Up @@ -5,7 +5,7 @@ upstream unicorn {
server {
listen 80 default deferred;
# server_name example.com;
root /var/apps/molawson/current/public;
root /srv/apps/molawson/current/public;

location ^~ /assets/ {
gzip_static on;
Expand Down
2 changes: 1 addition & 1 deletion config/unicorn.rb
@@ -1,4 +1,4 @@
root = "/var/apps/molawson/current"
root = "/srv/apps/molawson/current"
working_directory root
pid "#{root}/tmp/pids/unicorn.pid"
stderr_path "#{root}/log/unicorn.log"
Expand Down
2 changes: 1 addition & 1 deletion config/unicorn_init.sh
Expand Up @@ -12,7 +12,7 @@ set -e

# Feel free to change any of the following variables for your app:
TIMEOUT=${TIMEOUT-60}
APP_ROOT=/var/apps/molawson/current
APP_ROOT=/srv/apps/molawson/current
PID=$APP_ROOT/tmp/pids/unicorn.pid
CMD="cd $APP_ROOT; bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
AS_USER=deploy
Expand Down

0 comments on commit bcf8d51

Please sign in to comment.