From ae813243183fdc1bb84ab4b9223c9ab4bc8c29a9 Mon Sep 17 00:00:00 2001 From: Derrick Mehaffy Date: Thu, 24 Oct 2019 05:44:58 -0700 Subject: [PATCH] Add note about uploads for Heroku to deployment docs --- docs/3.0.0-beta.x/guides/deployment.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/3.0.0-beta.x/guides/deployment.md b/docs/3.0.0-beta.x/guides/deployment.md index 5bc1fc9d51..d74cdc201a 100644 --- a/docs/3.0.0-beta.x/guides/deployment.md +++ b/docs/3.0.0-beta.x/guides/deployment.md @@ -1562,3 +1562,11 @@ git commit -am "Changes to my-project noted" git push heroku master heroku open ``` + +--- + +### File Uploads + +Like with project updates on Heroku, the file system doesn't support local uploading of files as they will be wiped when Heroku "Cycles" the dyno. This type of file system is called [ephemeral](https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem), which means the file system only lasts until the dyno is restarted (with Heroku this happens any time you redeploy or during their regular restart which can happen every few hours or every day). + +Due to Heroku's filesystem you will need to use an upload provider such as AWS S3, Cloudinary, or Rackspace. You can view the documentation for installing providers [here](../plugins/upload.md#install-providers) and you can see a list of providers from both Strapi and the community on [npmjs.com](https://www.npmjs.com/search?q=strapi-provider-upload-&page=0&perPage=20).