Colin Law wrote in post #1150316:
> On 20 June 2014 14:26, Jaimin Pandya <[email protected]> wrote:
>> I have copy/paste the relevant lines of the log and database.yml.
> Well I still don't see them.  When I say copy/paste I mean to copy the
> text out of the log or file and paste it into the message before you
> send it.  So you should be able to see the text in the message.
>
> Also you *still* have not confirmed that you understand that you must
> use postgres.

>Output of Heroku logs:

2014-06-20T15:56:59.194349+00:00 app[web.1]:Rendered 
line_items/_line_item.text.erb (3.6ms)

2014-06-20T15:56:59.206754+00:00 app[web.1]: Sent mail to 
[email protected] (10.4ms)

2014-06-20T15:56:59.206917+00:00 app[web.1]: Completed 500 Internal 
Server Error in 61.0ms

2014-06-20T15:56:59.194386+00:00 app[web.1]:   Rendered 
order_notifier/received.text.erb (4.8ms)

2014-06-20T15:56:59.206750+00:00 app[web.1]:
2014-06-20T15:56:59.208468+00:00 app[web.1]:
2014-06-20T15:56:59.208476+00:00 app[web.1]:

2014-06-20T15:56:59.208471+00:00 app[web.1]: Errno::ECONNREFUSED 
(Connection refused - connect(2)):

2014-06-20T15:56:59.208474+00:00 app[web.1]: 
app/controllers/orders_controller.rb:56:in `block in create'

2014-06-20T15:56:59.208475+00:00 app[web.1]: 
app/controllers/orders_controller.rb:52:in `create'


>Code of database.yml as follow:

# SQLite version 3.x
#   gem install sqlite3
#
#   Ensure the SQLite 3 gem is defined in your Gemfile
#   gem 'sqlite3'
development:
  adapter: sqlite3
  database: db/development.sqlite3
  pool: 5
  timeout: 5000

# 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.
test:
  adapter: sqlite3
  database: db/test.sqlite3
  pool: 5
  timeout: 5000

production:
  adapter: sqlite3
  database: db/production.sqlite3
  pool: 5
  timeout: 5000

I have used postgres gem in Gemfile which is require to deploy 
application to Heroku.

Kind regards,

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/44fb22d7c0203745dfacfb699793ad1f%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to