mirror of
https://github.com/strapi/strapi.git
synced 2025-10-17 02:53:22 +00:00
Merge pull request #3121 from strapi/heroku-strapi-project-updates
Added a paragraph about developing with Strapi and Heroku
This commit is contained in:
commit
a57d4db2f1
@ -384,6 +384,10 @@ For security reasons, the Content Type Builder plugin is disabled in production.
|
||||
|
||||
### Project updates
|
||||
|
||||
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.
|
||||
|
||||
`Path: ./my-project/`
|
||||
|
Loading…
x
Reference in New Issue
Block a user