mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
Adding a note about developing with heroku from Dev to Production
This commit is contained in:
parent
e14618f55e
commit
43442a150e
@ -384,7 +384,9 @@ For security reasons, the Content Type Builder plugin is disabled in production.
|
||||
|
||||
### Project updates
|
||||
|
||||
Due to limitations in Heroku, Strapi can only be deployed in Production mode to Heroku. Therefore, modifications that require writing to model creation or other json files, e.g. creating or changing content-types, require that you make those changes on your dev environment and then push the changes to Heroku.
|
||||
When Strapi is deployed to Heroku, Heroku sets the environment variable to `NODE_ENV=production`. In `production mode` Strapi disables the content-type builder (for security reasons). Additionally, if you wanted to change the default production mode in Heroku, it wouldn't work as the file system is temporary. Strapi writes files to the server when you update the content-types and these updates would disappear when Heroku restarts the server.
|
||||
|
||||
Therefore, modifications that require writing to model creation or other json files, e.g. creating or changing content-types, require that you make those changes on your dev environment and then push the changes to Heroku.
|
||||
|
||||
As you continue developing your application with Strapi, you may want to use [version control](https://devcenter.heroku.com/articles/github-integration), or you can continue to use `Git push heroku master` to commit and push changes to Heroku directly.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user