rake db:migrate RAILS_ENV=productionor
rake db:migrate RAILS_ENV="production"
Notes to self
rake db:migrate RAILS_ENV=productionor
rake db:migrate RAILS_ENV="production"
The hosts file should be in there. Just open it up with notepad or something and add in 127.0.0.1 localhost.localdomain
Links:
>curl -X PUT -d "post[title]=first post from curl" "http://localhost:3000/posts/1" -H "Accept: text/xml"
>curl -d "post[title]=first post from curl" "http://localhost:3000/posts" -H "Accept: text/xml"
Browser and OS => request.env['HTTP_USER_AGENT']
Referring website => request.env["HTTP_REFERER"]
IP => request.remote_ip
Session id => session.session_id