How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?
-
Hello @DualOSWinWiz
One Idea:
Since the
prod
instance is themaster
and has the highest priority of data, eachdev
/sandbox
orstage
could be a fresh clone from the latest app backup of themaster
.This way all other instances have the
master
data, 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 themaster
and 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
prod
instance is themaster
and has the highest priority of data, eachdev
/sandbox
orstage
could be a fresh clone from the latest app backup of themaster
.This way all other instances have the
master
data, 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 themaster
and 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