How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?
-
Hello @DualOSWinWiz
One Idea:
Since the
prodinstance is themasterand has the highest priority of data, eachdev/sandboxorstagecould be a fresh clone from the latest app backup of themaster.This way all other instances have the
masterdata, and you can work with that data and direct cloned setup to confirm what you are planning to do works.
Then do the same on themasterand all others will then have to re-deploy from the newmaster. -
The problem is managing the consistency as a pipeline methodology between environments like"development", "sandbox" and "production".
Where if all 3 apps are on same version how could i push code changes from dev to Production. Because of Metadata postgress to postgree sql migration even with a paid tool like Devarts PostgreSQL Studio failed
@DualOSWinWiz said in How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?:
how could i push code changes from dev to Production
I'd try cloning from a backup of staging into production or something like that.
Or perhaps Syncthing could somehow be used?

-
Hello @DualOSWinWiz
One Idea:
Since the
prodinstance is themasterand has the highest priority of data, eachdev/sandboxorstagecould be a fresh clone from the latest app backup of themaster.This way all other instances have the
masterdata, and you can work with that data and direct cloned setup to confirm what you are planning to do works.
Then do the same on themasterand all others will then have to re-deploy from the newmaster.@james, the problem is that, as you said, production will always have priority over data. Let's say I create a clone from production to work on a sprint. After one week of work, if all is good, the sandbox will be ready to be deployed on production. At that time, production will have new data. How to handle that? Because Directus on Cloudron only supports one database, it cannot be linked with another at that crucial time. CI/CD comes into play, which I am trying to figure out. 🤯 #Production #Data #Deployment #CI/CD #Database #Sandbox
-
@DualOSWinWiz said in How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?:
how could i push code changes from dev to Production
I'd try cloning from a backup of staging into production or something like that.
Or perhaps Syncthing could somehow be used?

@jdaviescoates i tried multiple things for synching and app start creating data integrity errors.
-
@jdaviescoates i tried multiple things for synching and app start creating data integrity errors.
@DualOSWinWiz have you tried cloning from a backup?
-
@DualOSWinWiz have you tried cloning from a backup?
@jdaviescoates yes issue is Data priority on production
-
@robi i didn't saw any documentation on that
-
@jdaviescoates yes issue is Data priority on production
@DualOSWinWiz said in How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?:
@jdaviescoates yes issue is Data priority on production
Ah, right. I think you mean "I can't clone a backup from staging into Production because then we lose some of the Production data"... makes sense. I guess you could first clone from Production into Staging and then back again, but I guess in the interim there might be new data again.
-
@DualOSWinWiz said in How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?:
@jdaviescoates yes issue is Data priority on production
Ah, right. I think you mean "I can't clone a backup from staging into Production because then we lose some of the Production data"... makes sense. I guess you could first clone from Production into Staging and then back again, but I guess in the interim there might be new data again.
@jdaviescoates correct
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login