I used MySQL as a backend before. Now I had to move to PG since Heroku
doesn't have MySQL and forces everyone to use their Heroku-PG database.
But PG virsion of Rails works diffidently. I cannot generate a model
without PG server running:
>> C:\ruby\Heroku\App>rails generate model Products
>>
>> C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activerecord-
>> 3.2.13/lib/active_record/connection_adapters/postgresql_ada
>> pter.rb:1216:in `initialize': could not connect to server: Connection
>> refused (0x0000274D/10061) (PG::Error)
>> Is the server running on host "localhost" (127.0.0.1) and accepting
>> TCP/IP connections on port 5432?
I even couldn't open Rails start page (Welcome aboard, I mean) without
database and app_development table in it being created! I had to
explicitly create them before.
How to turn off this behavior of PG? I don't want to start PG server
every time I just need to run some rails|rake task. This totally not the
same as MySQL. I didn't need MySQL server running to call rake|rails
tasks.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment