Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BugFix for #21 Setup now runs foreman with port 3000 by default #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,3 @@ DEPENDENCIES
uglifier (>= 1.3.0)
virtus
web-console (~> 2.0)

BUNDLED WITH
1.11.2
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bundle exec rails server -p ${PORT:-3000} -e ${RACK_ENV:-development}
web: bundle exec rails server -p ${PORT} -e ${RACK_ENV}
worker: bundle exec sidekiq -C config/sidekiq.yml
2 changes: 1 addition & 1 deletion lib/tasks/setup.rake
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ namespace :setup do
task :run do
puts "\n== Run application =="

system "foreman start"
system "RACK_ENV=#{ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'} foreman start -p #{ENV['PORT'] || 3000}"
end
end