Nic*_* A. 11 ruby-on-rails heroku ruby-on-rails-3 asset-pipeline
我将Heroku环境设置为暂存,但我的资产始终在生产环境中编译.
这是heroku config:
GEM_PATH => vendor/bundle/ruby/1.9.1 LANG => en_US.UTF-8 PATH => bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin RACK_ENV => staging
我在production.rb文件中添加了一个例外,因此我知道在编译资产时它正在运行哪个环境.服务器启动只是正常运行heroku run console显示我正在运行升级.
它只是在运行时assets:precompile始终处于生产阶段.
如果需要,我很乐意发布任何其他配置文件.
我可以补充一点,我在Heroku上运行Rails 3.2.2和Cedar堆栈
输出来自heroku run rake about:
About your application's environment Ruby version 1.9.2 (x86_64-linux) RubyGems version 1.3.7 Rack version 1.4 Rails version 3.2.2 JavaScript Runtime therubyracer (V8) Action Pack version 3.2.2 Active Support version 3.2.2 Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #, Rack::Runtime, Rack::Auth::Basic, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport Application root /app Environment staging
跑步heroku run rake assets:precompile给出:
/usr/local/bin/ruby /app/vendor/bundle/ruby/1.9.1/bin/rake assets:precompile:all RAILS_ENV=staging RAILS_GROUPS=assets
我应该放弃并发送电子邮件给Heroku吗?
| 归档时间: |
|
| 查看次数: |
4280 次 |
| 最近记录: |