Created
December 11, 2010 20:33
-
-
Save qzio/737634 to your computer and use it in GitHub Desktop.
padrino_rack_env_issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qzio@saito:~/public/notr[master]$ export RACK_ENV=production | |
qzio@saito:~/public/notr[master]$ echo $RACK_ENV | |
production | |
qzio@saito:~/public/notr[master]$ irb | |
ruby-1.9.2-p0 > ENV["RACK_ENV"] | |
=> "production" | |
ruby-1.9.2-p0 > quit | |
qzio@saito:~/public/notr[master]$ echo $PADRINO_ENV | |
qzio@saito:~/public/notr[master]$ RACK_ENV=production padrino console | |
=> Loading development console (Padrino v.0.9.19) | |
output from config/boot.rb | |
padrino is not set look into the env | |
rack: development | |
padrino: development | |
=> Located unlocked Gemfile for development | |
DEBUG - [11/Dec/2010 21:32:25] "SQL (0.4ms) SELECT name | |
FROM sqlite_master | |
WHERE type = 'table' AND NOT name = 'sqlite_sequence' | |
" | |
DEBUG - [11/Dec/2010 21:32:25] "SQL (0.1ms) SELECT name | |
FROM sqlite_master | |
WHERE type = 'table' AND NOT name = 'sqlite_sequence'" | |
DEBUG - [11/Dec/2010 21:32:25] "SQL (0.1ms) SELECT name | |
FROM sqlite_master | |
WHERE type = 'table' AND NOT name = 'sqlite_sequence' | |
" | |
=> Loading Application Notr | |
ruby-1.9.2-p0 > ENV["RACK_ENV"] | |
=> "development" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment