Skip to content

Commit a52a2ea

Browse files
Add development flow to FAQ
1 parent 9fdb650 commit a52a2ea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/3.0.0-beta.x/getting-started/troubleshooting.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ Fill out the form on the [Support page](https://strapi.io/support) of the Strapi
2222

2323
## Frequently Asked Questions
2424

25+
### Why can't I create or update content-types in production/staging?
26+
27+
Strapi stores model configuration files (what defines the model schema) in files such as `api/restaurant/models/restaurant.settings.json`. Due to how Node.js works, in order for changes to take effect, that would require Node to restart the server. This could potentionally cause downtime of your production service and likewise these changes should be tracked in some kind of source control.
28+
29+
Generally your "flow" of development would follow the following path:
30+
31+
- Development - Develop your Strapi application locally on your host machine, then push changes into source control
32+
- Staging - Deploy changes from source control to a "production-like" environment for testing
33+
- Production - If no other changes are needed, deploy into production
34+
- Repeat as needed, it is recommended that you properly version and test your application as you go
35+
36+
At this time and in the future there is no plan to allow model creating or updating while in a production environment, and there is currently no plans to move model settings into the database. There is no known nor recommended workarounds for this.
37+
2538
### Does Strapi handle deploying or migrating of content?
2639

2740
Strapi does not currently provide any tools for migrating or deploying your data changes between different environments (_ie. from development to production_).

0 commit comments

Comments
 (0)