1

public/assets/partialsGit の 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 を介してこの特定のドキュメントにアクセスしても、この変更は表示されません。また、変更が 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 のファイル システムで更新されていないように見えるため、これはアセット パイプラインに関連しているとは思いません。

4

0 に答える 0