Skip to content
Browse files

Properly set env in Procfile

  • Loading branch information...
1 parent d9eeb8a commit 7eb333f42d45241f389512a074829537ebc27511 @rwdaigle committed Feb 22, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −0 .env
  2. +1 −1 Gemfile.lock
  3. +1 −1 Procfile
  4. +1 −1 deploy.sh
View
2 .env
@@ -1,3 +1,5 @@
+RACK_ENV=development
+
NESTA_TITLE="My Name"
NESTA_FEED_URL=http://feeds.feedburner.com/MyBlogToken
View
2 Gemfile.lock
@@ -5,8 +5,8 @@ GIT
rack-pygmoku (0.1.0)
nokogiri (~> 1.4)
nokogiri (~> 1.4)
- pygments.rb (~> 0.1)
pygments.rb (~> 0)
+ pygments.rb (~> 0.1)
rack
GEM
View
2 Procfile
@@ -1 +1 @@
-web: bundle exec thin start -p $PORT
+web: bundle exec thin start -R config.ru -p $PORT -e $RACK_ENV
View
2 deploy.sh
@@ -1,5 +1,5 @@
#!/bin/sh
heroku create -s cedar --addons memcache,newrelic
git push heroku master
-cat .env | tr '\n' ' ' | xargs heroku config:add
+cat .env | grep -v 'RACK_ENV' | tr '\n' ' ' | xargs heroku config:add
heroku open

0 comments on commit 7eb333f

Please sign in to comment.
Something went wrong with that request. Please try again.