破坏heroku上的spree_fancy布局 [英] Broken spree_fancy layout on heroku

查看:104
本文介绍了破坏heroku上的spree_fancy布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名铁杆新手。我在我的应用程序上安装了狂欢和狂欢幻想。在开发过程中没问题,但是当我将它部署到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆