开发者

I am trying to run rails on Apache, but can't get it into development mode

开发者 https://www.devze.com 2023-01-15 17:33 出处:网络
I am setting up a development environment for ruby on rails. Using rails 3.0, ubuntu, mysql and apache2 with passenger.

I am setting up a development environment for ruby on rails. Using rails 3.0, ubuntu, mysql and apache2 with passenger.

So far so good until I go to localhost and it tells me:

"Mysql2::Error

Unknown database '[app-name]_production'"

The error occurs because I don't have a production database. Only _development and 开发者_开发知识库_test. I have tried using "RailsEnv development" but it doesn't work.


Add

RailsEnv development
RackEnv development

to your httpd.conf file, and restart Apache.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号