How to separate development environment and production environment? #11612
Locked
SkullCutter02
announced in
Archive
Replies: 1 comment 5 replies
-
I had same question a few days ago. seems the cli command snapshot can be used to achieve this... I do not test it in real production env yet. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Back when I was using Strapi, it really easy to have a local copy of the CMS on my localhost, and a deployed version on somewhere on Heroku where the data model editor is disabled and uses a production database. While playing around with Directus, I noticed Directus saves everything on the database, and there's no schema javascript files. So I tried deploying my local copy of Directus, and sure enough none of the models have been saved on Heroku. So now if I want to develop directus, I need to use the production version, as if I have a localhost version it won't sync with the production one.
I was wondering if there's a mode that can emulate what Strapi does? Meaning I can have a localhost copy that I use to develop on, then I can deploy the local copy to Heroku, and this production copy will have the exact same models as the local copy, but uses a production postgres database from RDS and has disabled data model editing, and is only used for content editing?
Beta Was this translation helpful? Give feedback.
All reactions