我public/assets/partials
在 Git 中更新了 Rails/Heroku 应用程序目录中的几个文件。例如:
$ 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 访问此特定文档不会显示此更改。我还验证了测功机上不存在更改:
$ 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 的文件系统上更新。