LoginSignup
5
1

More than 5 years have passed since last update.

herokuで一時ファイルを使用する場合

Posted at

herokuでのファイルの取り扱い

herokuではdynoが再起動するため、ローカルファイルを保存できないのは有名だと思います。

では、一時ファイルを使う場合どうするか。

/tmp以下を使う

もちろん/tmp以下のファイルもdyno再起動時に削除されます。

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1