破坏heroku上的spree_fancy布局 [英] Broken spree_fancy layout on heroku
问题描述
Question w / Images: https://github.com/spree/spree_fancy/issues/68
Gemfile:
ruby'1.9.3'
gem'rails_12factor',group::production
gem'rails','4.0.0'
group:production do
gem'pg'
end
group:development,:test do
gem'sqlite3'
end
gem'sass-rails','〜> 4.0.0'
gem'uglifier','> = 1.3.0'
gem'coffee-rails','〜> 4.0.0'
gem'jquery-rails'
gem'turbolinks'
gem'jbuilder','〜> 1.2'
组:doc do
gem'sdoc',要求:false
结束
gem'spree','2.1.2'
gem'spree_gateway',:git => 'link is missing to post',:branch => '2-1-stable'
gem'spree_auth_devise',:git => 'link is missing to post',:branch => '2-1-stable'
gem'spree_fancy',::git => 'link is missing to post',:branch => '2-1-stable'
*链接可以在github上找到
我已经完成:
heroku run rake db:migrate
code>
在推入heroku之后。
从您的应用程序文件夹中执行以下步骤:
bundle exec rake资产:预编译
git add。
git commit -mpublic / assets precompile
git push heroku master
heroku open
为了查看Heroku文件夹中的内容:
heroku ls public / assets
另外,如果您有更多错误,请使用此命令排除故障。我在某些时候看到了一些加载图像的错误。这些错误来自ActionController:
heroku日志-n 500
heroku日志-n 500 | grep Action
这是我在最后几天学到的东西,希望对别人有用。
I'm a rails newbie. I've install spree and spree fancy on my app. It's ok on development but when I've deployed it on heroku, the layout is broken. Can anyone help me fix this?
Question w/ Images: https://github.com/spree/spree_fancy/issues/68
Gemfile:
ruby '1.9.3'
gem 'rails_12factor', group: :production
gem 'rails', '4.0.0'
group :production do
gem 'pg'
end
group :development, :test do
gem 'sqlite3'
end
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
gem 'sdoc', require: false
end
gem 'spree', '2.1.2'
gem 'spree_gateway', :git => 'link is omitted to post', :branch => '2-1-stable'
gem 'spree_auth_devise', :git => 'link is omitted to post', :branch => '2-1-stable'
gem 'spree_fancy', :git => 'link is omitted to post', :branch => '2-1-stable'
*links can be found on github
I've already done:
heroku run rake db:migrate
after push into heroku.
Probably you are missing your public/assets folder on your heroku app.
Take these steps from your app folder:
bundle exec rake assets:precompile
git add .
git commit -m "public/assets precompile"
git push heroku master
heroku open
In order to check out what is on your Heroku folder:
heroku ls public/assets
Also, in case you are having some more errors use this command in order to troubleshoot. I saw at some point some errors loading images. These errors are coming from ActionController:
heroku logs -n 500
heroku logs -n 500 | grep Action
This is what I was learning within the last days and hope it can be useful to someone.
这篇关于破坏heroku上的spree_fancy布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!