How can I make a custom environment in rails a default environment?

前端 未结 3 1555
無奈伤痛
無奈伤痛 2021-02-10 09:19

i created a custom staging environment in my rails app by adding new file config/environments/staging.rb, same as config/environments/development

3条回答
  •  长情又很酷
    2021-02-10 10:04

    I have put ENV['RAILS_ENV'] ||= 'custom_development' in boot.rb at the last. It worked.

    I have tested

    • rake
    • server
    • console
    • dbconsole

    All Worked.

提交回复
热议问题