I am reading " Agile Web Developement with rails". I am using Ruby 1.9.3
and Rails 3.2.16.
I can able to run application locally But application not working on
heroku. I deployed my application successfully on heroku.
When I run rake test, there is no failure.
When I click on place order button i got error like:
We’re sorry, but something went wrong.
I have attached heroku logs and order_controller.rb file. Please find
Output of Heroku logs:
create' 2014-06-20T09:23:11.979418+00:00 app[web.1]: 2014-06-20T09:23:11.977584+00:00 app[web.1]: Sent mail to [email protected] (8.8ms) 2014-06-20T09:23:11.979414+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)): 2014-06-20T09:23:11.979416+00:00 app[web.1]: app/controllers/orders_controller.rb:56:inblock in
Code of database.yml as follow:
SQLite version 3.x
gem install sqlite3
Ensure the SQLite 3 gem is defined in your Gemfile
Warning: The database defined as “test” will be erased and
re-generated from your development database when you run “rake”.
Do not set this db to the same as development or production.
How can i solve this error?