开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜