Heroku没有更新导轨应用程序的CSS [英] Heroku not updating css for rails app

查看:89
本文介绍了Heroku没有更新导轨应用程序的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在更新Heroku上的Rails应用程序时遇到问题。我已经获得了我的应用程序,但是我试图在/ public / stylesheets /中更改我的application.css文件,但每当我尝试推送到heroku时,CSS都不会改变。我在本地测试了这些变化,他们工作得很好,我无法弄清楚如何将他们推送到heroku。我试着用git push heroku,heroku db:push和heroku rake db:migrate,但没有任何效果。感谢您的帮助。

解决方案

请记住,您必须在本地提交更改,然后才能推送它们。 b
$ b

如果你做了一个 git status ,它应该是干净的。

如果它不是(我的预测):
$ b $ pre $ g $ git commit -am你的提交信息
git push heroku master


I'm having trouble updating my rails app on heroku. I've gotten my app up but I tried to change my application.css file in /public/stylesheets/ but whenever I try to push to heroku, the CSS never changes. I tested these changes locally and they work just fine, I just can't figure out how to push them to heroku. I've tried pushing with git push heroku, heroku db:push, and heroku rake db:migrate but nothing works. Thanks for your help.

解决方案

Remember that you have to commit the changes locally before you can push them.

If you do a git status, it should be clean.

If it's not (my prediction):

git commit -am "Your commit message"
git push heroku master

这篇关于Heroku没有更新导轨应用程序的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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