我在Git中的Rails / Heroku应用程序的public/assets/partials
目录中更新了几个文件。例如:
$ git remote show -n staging
* remote staging
Fetch URL: git@heroku.com:myapp-staging.git
Push URL: git@heroku.com:myapp-staging.git
$ git diff staging/master~1..staging/master
diff --git a/public/assets/partials/feed.html b/public/assets/partials/feed.html
index 7161cc0..c8c03f0 100644
--- a/public/assets/partials/feed.html
+++ b/public/assets/partials/feed.html
@@ -1,3 +1,4 @@
+<h1>some really obvious text</h1>
<button ng-click="refresh()">refresh</button>
<div class="poll-list">
<article class="panel row" ng-repeat="poll in polls">
但是,通过Rails访问此特定文档并未显示此更改。我还证实了dyno上没有变化:
$ heroku run cat ./public/assets/partials/feed.html --app myapp-staging
Running `cat ./public/assets/partials/feed.html` attached to terminal... up, run.6268
<button ng-click="refresh()">refresh</button>
<div class="poll-list"
data-infinite-scroll="nextPage()"
data-infinite-scroll-disabled="busy" >
<article class="panel row" ng-repeat="poll in polls">
<h1>{{ poll.question }}</h1>
{{ poll.vote_count }} votes {{ poll.comment_count }} comments
<a class="button" ui-sref="pollDetail({ pollId: poll.id })">Vote</a>
</article>
</div>
所有想法。我不认为这与资产管道有关,因为文件直接存储在public/
中,并且文件似乎没有在dyno的文件系统上更新。