Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のconfig.ruで、環境に応じて特定のコードを実行するコードブロックを設定したいと思います。
いくつかのコードを試しましたが、成功していません。助言がありますか?
if ENV['RAKE_ENV'].to_s.eql?('development') Bundler.require(:default, :development) end
ENV['RACK_ENV']の代わりにチェックしたいと思いますENV['RAKE_ENV']。
ENV['RACK_ENV']
ENV['RAKE_ENV']