Merge pull request #150 from marcoceppi/procfile-fun

Add foreman procfile
This commit is contained in:
Robin Ward 2013-02-14 07:36:55 -08:00
commit 6e8d74478f
3 changed files with 18 additions and 0 deletions

3
.gitignore vendored
View file

@ -65,3 +65,6 @@ script/refresh_db
# temp directory for chef (used to configure vagrant VM)
chef/tmp/*
# .procfile
.profile

12
.procfile.sample Normal file
View file

@ -0,0 +1,12 @@
###
# .procfile example
##
# Move this file to .procfile and change the values
# below to suit your needs.
###
# This specifies how many of each task to run
concurrency: web=2,sidekiq=1,clockwork=1
# Define the port range to use, must be in multiples of 1000
port: 3000

3
Procfile Normal file
View file

@ -0,0 +1,3 @@
web: bundle exec rails server -p $PORT
sidekiq: bundle exec sidekiq -e $RAILS_ENV
clockwork: bundle exec clockwork config/clock.rb