Skip to content

Commit

Permalink
Use port from environment; Add start script
Browse files Browse the repository at this point in the history
  • Loading branch information
bloopletech committed Jun 12, 2015
1 parent e3c690d commit 9d2e8cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -5,6 +5,5 @@
/public/system/*
.DS_Store
**/.DS_Store
/start.sh
/.redcar
/public/assets
2 changes: 1 addition & 1 deletion Procfile
@@ -1,2 +1,2 @@
web: bundle exec puma -p 3000
web: bundle exec puma -p $PORT
sidekiq: bundle exec sidekiq -C config/sidekiq.yml
11 changes: 11 additions & 0 deletions start.sh
@@ -0,0 +1,11 @@
#!/bin/bash -i

#Change directory into the directory containing this script
cd "$(dirname "$(readlink -f "$0")")"

exec >>log/start.log
exec 2>&1

bundle exec rake assets:precompile assets:clean_expired
pkill -f foreman
RACK_ENV=production PORT=3000 bundle exec foreman start &

0 comments on commit 9d2e8cc

Please sign in to comment.