#默认rails c 进入开发模式
$ rails console
Loading development environment
>> Rails.env
=> "development"
#rails console test 进入test环境模式
$ rails console test
Loading test environment
>> Rails.env
=> "test"
#rails console production 进入prodution环境模式
$ rails console production
Loading production environment
>> Rails.env
=>
rails console 控制台
最新推荐文章于 2023-07-18 10:54:39 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)