Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Prepping for test deploy
- Loading branch information
Robert May
committed
Jun 17, 2013
1 parent
2ad3779
commit 3f40c4f
Showing
5 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load 'deploy' | ||
load 'deploy/assets' | ||
load 'config/deploy' # remove this line to skip loading any of the default tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: bundle exec puma -p $PORT -t 8:8 | ||
web: bundle exec puma -C ./config/puma.rb | ||
worker: bundle exec sidekiq -q events,3 -q mailer,3 -q sunspot,2 -q photos,2 -q default,1 -q low -c 25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
environment $RAILS_ENV | ||
threads 8, 16 | ||
threads 16, 16 | ||
daemonize true | ||
pidfile "/tmp/web_server.pid" | ||
bind "unix:///tmp/web_server.sock" | ||
stdout_redirect "#{ENV['RAILS_STACK_PATH']}/log/puma.stdout.log", "#{ENV['RAILS_STACK_PATH']}/log/puma.stderr.log" | ||
pidfile "/var/run/web_server.pid" | ||
bind "unix:///var/run/web_server.sock" | ||
|
||
# Add a worker per CPU core | ||
workers %x{grep -c processor /proc/cpuinfo}.strip |