回答編集履歴
1
誤字の修正
answer
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
heroku は、1日に1回再起動されて、環境が git から再構築されますので、 git 管理されていないファイルは、この再起動のタイミングで、消えてしまいます。
|
4
4
|
|
5
|
-
s3等の外部ストレージを利用するのが簡単ですが、
|
5
|
+
s3等の外部ストレージを利用するのが簡単ですが、プログラムから生成するデータや設定ファイルであれば、 [Procfile](https://devcenter.heroku.com/articles/procfile) の中で、[Release Phase](https://devcenter.heroku.com/articles/release-phase) を使って、用意しておいたコマンドラインコマンドを実行させる等の工夫で対応できる場合もあります。
|
6
6
|
|
7
7
|
例: [When does the release command run?](https://devcenter.heroku.com/articles/release-phase#when-does-the-release-command-run)
|