0
在最初的几个Rails应用程序我设置为小型应用程序来学习我用轨道环境的mixup,开发服务器使用生产DB
RAILS_ENV=production rake db:setup
,并创建了myapp_production
但是这个(MySQL的)表我无法填充开发或测试数据库。它只是写入到生产,也杂种服务器上运行的应用程序写入到生产数据库,但说,这是在启动开发环境:
$ rails server
WARNING: This version of mysql2 (0.3.6) doesn't ship with the ActiveRecord adapter bundled anymore as it's now part of Rails 3.1
WARNING: Please use the 0.2.x releases if you plan on using it in Rails <= 3.0.x
=> Booting WEBrick
=> Rails 3.0.9 application starting in development on http://0.0.0.0:3000
我这里不使用RVM(试过在另一台电脑,你猜我喜欢)
我不知道如何解决这个问题。并没有错误信息。
你试过运行'rake db:setup RAILS_ENV = development'? – Augusto
什么是在database.yml开发环境的配置? –