Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

use Procfile for development as well

  • Loading branch information...
snatchev committed Jul 25, 2018
1 parent db06b98 commit 60a8ed8920ea6f670f48cc797813d52720a311f2
Showing with 11 additions and 3 deletions.
  1. +1 −1 Procfile
  2. +2 −0 Procfile.dev
  3. +8 −2 Rakefile
@@ -1,2 +1,2 @@
web: bundle exec rake prod
web: bundle exec rackup --host 0.0.0.0 --port 8080 --env production
worker: bundle exec ruby agent/service.rb
@@ -0,0 +1,2 @@
web: bundle exec rackup --host 0.0.0.0 --port 8080 --env development
worker: bundle exec ruby agent/service.rb
@@ -1,9 +1,15 @@
task :dev do
sh "bundle exec rackup --host 0.0.0.0 --port 8080 --env development"
unless system("which foreman", out: File::NULL)
raise "`foreman` is now required for process management. `sudo gem install foreman`"
end
sh "foreman start -f Procfile.dev"
end

task :prod do
sh "bundle exec rackup --host 0.0.0.0 --port 8080 --env production"
unless system("which foreman", out: File::NULL)
raise "`foreman` is now required for process management. `sudo gem install foreman`"
end
sh "foreman start"
end

task :dev_bootstrap do

0 comments on commit 60a8ed8

Please sign in to comment.
You can’t perform that action at this time.