CSS本地加载,但不是在Heroku的rails应用程序 [英] CSS loading locally but not in Heroku for a rails app

查看:111
本文介绍了CSS本地加载,但不是在Heroku的rails应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在关注rails prelaunch注册教程。 Bootstrap在heroku上正常工作,但是我修改了bootstrap_and_override文件以包含标志。当在本地启动rails服务器和查看时,样式是我打算用bootstrap和新标题标志出现。

I'm following a rails prelaunch signup tutorial. Bootstrap was working fine deployed on heroku, but then I modified the bootstrap_and_override file to include a logo. When launching a rails server locally and viewing, the style is as I intended with bootstrap and the new header logo appearing.

像以前一样,我运行rake assets:precompile并推送到git - 遵循本教程 http://railsapps.github.com/rails-heroku-tutorial.html 在工作之前显示css时在heroku。

Like I did before, I ran rake assets:precompile and pushed to git - followed this tutorial http://railsapps.github.com/rails-heroku-tutorial.html which worked before showing the css while on heroku. The html is showing but it looks like css and bootstrap are missing.

有没有任何想法?

推荐答案

在您的本地代码

更改并部署到heroku

Commit the changes and deploy to heroku

这篇关于CSS本地加载,但不是在Heroku的rails应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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