Hello,
I’m having trouble getting MySQL work on Vista with Norton Security and
because of that I can’t get RoR to display a simple “Hello World!”
message.
I was wondering, can RoR work without database? I don’t need it at this
point.
Hello,
I’m having trouble getting MySQL work on Vista with Norton Security and
because of that I can’t get RoR to display a simple “Hello World!”
message.
I was wondering, can RoR work without database? I don’t need it at this
point.
Vi Le wrote:
Hello,
I’m having trouble getting MySQL work on Vista with Norton Security and
because of that I can’t get RoR to display a simple “Hello World!”
message.I was wondering, can RoR work without database? I don’t need it at this
point.
Then you very likely don’t need Rails. Rails should be able to work
without a DB, but it loads ActiveRecord anyway. Perhaps you want Merb
or Sinatra?
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Hi,
Find this in your environment.rb and comment/remove/modify as needed.
database,
config.frameworks -= [ :active_record, :active_resource, :action_mailer
]
Cheers.
Vi Le wrote:
Thanks. I just realized that rails comes with SQLite 3 support. I
decided to use it for now and the app works. Finally!
Yes, that should be OK to get you started. Just don’t use it for
production. For that, I recommend PostgreSQL.
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Thanks. I just realized that rails comes with SQLite 3 support. I
decided to use it for now and the app works. Finally!
Marnen Laibow-Koser wrote:
Vi Le wrote:
Thanks. I just realized that rails comes with SQLite 3 support. I
decided to use it for now and the app works. Finally!Yes, that should be OK to get you started. Just don’t use it for
production. For that, I recommend PostgreSQL.Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
Thanks, the production is Apache on Ubuntu and it has MySQL installed
already.
The following question is not related to the topic but since I’m here
I’ll just ask it:
How hard it is to push from dev to production environments if these
environments use different web servers and databases. Considering that
Ruby on Rails is installed on production server, would it be as easy as
copying project files to a new location and changing database.yml? Or is
it harder than that?
Vi Le wrote:
[…]
The following question is not related to the topic but since I’m here
I’ll just ask it:How hard it is to push from dev to production environments if these
environments use different web servers and databases.
Not very, as long as nothing in your code depends on a particular piece
of software.
Considering that
Ruby on Rails is installed on production server, would it be as easy as
copying project files to a new location and changing database.yml?
Usually – and actually, one database.yml should work for all
environments.
Or is
it harder than that?
Set up Capistrano and it will be ridiculously easy.
Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs