From 46ffb16c9421db5658a66676c46e000cf4fcd6d2 Mon Sep 17 00:00:00 2001 From: Jason Yeo Date: Mon, 8 Dec 2014 19:41:20 +0800 Subject: [PATCH 1/2] Use foreman to manage processes --- Gemfile | 1 + Gemfile.lock | 4 ++++ Procfile | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 Procfile diff --git a/Gemfile b/Gemfile index dadb96422..d3556da9e 100644 --- a/Gemfile +++ b/Gemfile @@ -95,6 +95,7 @@ gem "axlsx" gem "nokogiri" gem "newrelic_rpm" gem 'dotenv-rails' +gem 'foreman' # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' diff --git a/Gemfile.lock b/Gemfile.lock index 40a6e319f..4f490606d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -172,6 +172,9 @@ GEM font-awesome-sass-rails (3.0.2.2) railties (>= 3.1.1) sass-rails (>= 3.1.1) + foreman (0.76.0) + dotenv (~> 1.0.2) + thor (~> 0.19.1) formatador (0.2.5) fuubar (2.0.0) rspec (~> 3.0) @@ -460,6 +463,7 @@ DEPENDENCIES factory_girl_rails faker font-awesome-sass-rails + foreman fuubar gon google_visualr (>= 2.1) diff --git a/Procfile b/Procfile new file mode 100644 index 000000000..edc2f5143 --- /dev/null +++ b/Procfile @@ -0,0 +1,2 @@ +web: bundle exec puma -c ./config/puma.rb +worker: bundle exec rake jobs:work From 3f10da4069f49be0ec3126ddeeb0a67f4f62eddf Mon Sep 17 00:00:00 2001 From: Jason Yeo Date: Mon, 8 Dec 2014 22:46:28 +0800 Subject: [PATCH 2/2] =?UTF-8?q?Fix=20typo=20=F0=9F=98=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Procfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procfile b/Procfile index edc2f5143..c27265cf4 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ -web: bundle exec puma -c ./config/puma.rb +web: bundle exec puma -C ./config/puma.rb worker: bundle exec rake jobs:work