开发者

Rails confused between dev and test environment

开发者 https://www.devze.com 2023-04-11 22:34 出处:网络
I\'m just moving my rails app to a new development machine. for the first time, I am running rails on ubuntu in a virtualbox on a windows 7 host OS.

I'm just moving my rails app to a new development machine. for the first time, I am running rails on ubuntu in a virtualbox on a windows 7 host OS.

When I run rake d开发者_开发知识库b:create, it creates the rails_app_test.

When I run rails s, I get the error

unknown database rails_app_dev

I am trying to use the development environment, but for some reason rake is creating test. Why is this, and how do i correct it?


Your environment variable seems to equal 'test'.

Try:

 rake db:migrate RAILS_ENV=development
0

精彩评论

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