Add note about uploads for Heroku to deployment docs

This commit is contained in:
Derrick Mehaffy 2019-10-24 05:44:58 -07:00
parent 7e09cc0661
commit ae81324318
No known key found for this signature in database
GPG Key ID: 5244F387D2FF3618

View File

@ -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).