Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
russ committed Jan 16, 2013
1 parent 2b96d43 commit 17e0ff1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
21 changes: 9 additions & 12 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,16 @@
role :app, '66.209.73.11'
role :db, '66.209.73.11', primary: true

namespace :customs do
task :symlink, roles: :app do
run "ln -nfs #{shared_path}/database.yml #{latest_release}/config/database.yml"
end
end

require 'capistrano-unicorn'

after 'deploy:restart', 'deploy:cleanup'
after 'deploy:restart', 'unicorn:restart'

# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts

# If you are using Passenger mod_rails uncomment this:
# namespace :deploy do
# task :start do ; end
# task :stop do ; end
# task :restart, :roles => :app, :except => { :no_release => true } do
# run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
# end
# end
after 'deploy:update_code' do
customs.symlink
end
3 changes: 2 additions & 1 deletion config/unicorn/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

pid "#{root_path}/tmp/pids/unicorn.pid"

listen "#{root_path}/tmp/sockets/unicorn.sock", backlog: 2048
# listen "#{root_path}/tmp/sockets/unicorn.sock", backlog: 2048
listen '127.0.0.1:5000'

stderr_path "#{root_path}/log/unicorn.stderr.log"
stdout_path "#{root_path}/log/unicorn.stdout.log"
Expand Down

0 comments on commit 17e0ff1

Please sign in to comment.