fixes for production

This commit is contained in:
jomo
2014-06-25 00:05:19 +02:00
parent 1b23de09ef
commit 6769982fe3
2 changed files with 3 additions and 3 deletions

View File

@@ -27,8 +27,8 @@ namespace :deploy do
end
task :setup_config, roles: :app do
sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
puts "Please run as root: 'ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}'"
puts "Please run as root: 'ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}'"
run "mkdir -p #{shared_path}/config"
end
after "deploy:setup", "deploy:setup_config"

View File

@@ -12,7 +12,7 @@ set -e
# Feel free to change any of the following variables for your app:
TIMEOUT="${TIMEOUT-60}"
APP_ROOT="/home/www-data/apps/redstoner"
APP_ROOT="/home/www-data/apps/redstoner/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="www-data"