fixes for production
This commit is contained in:
@@ -27,8 +27,8 @@ namespace :deploy do
|
|||||||
end
|
end
|
||||||
|
|
||||||
task :setup_config, roles: :app do
|
task :setup_config, roles: :app do
|
||||||
sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
|
puts "Please run as root: '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/unicorn_init.sh /etc/init.d/unicorn_#{application}'"
|
||||||
run "mkdir -p #{shared_path}/config"
|
run "mkdir -p #{shared_path}/config"
|
||||||
end
|
end
|
||||||
after "deploy:setup", "deploy:setup_config"
|
after "deploy:setup", "deploy:setup_config"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ set -e
|
|||||||
|
|
||||||
# Feel free to change any of the following variables for your app:
|
# Feel free to change any of the following variables for your app:
|
||||||
TIMEOUT="${TIMEOUT-60}"
|
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"
|
PID="$APP_ROOT/tmp/pids/unicorn.pid"
|
||||||
CMD="cd $APP_ROOT; bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
|
CMD="cd $APP_ROOT; bundle exec unicorn -D -c $APP_ROOT/config/unicorn.rb -E production"
|
||||||
AS_USER="www-data"
|
AS_USER="www-data"
|
||||||
|
|||||||
Reference in New Issue
Block a user