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.
我很好奇为什么当我使用 CruiseControl.rb 构建我的项目时,它会在生产模式下运行它?即使我的应用程序不应该处于生产模式。我什至试图指定:ENV['RAILS_ENV'] ||= 'development'在我的应用程序的 environment.rb
ENV['RAILS_ENV'] ||= 'development'
如果尚未设置环境,则该 environment.rb 行只会将您的环境设置为开发环境。
有关他们建议如何配置您的构建环境的信息,请参阅:
他们在这个主题上的手动输入