Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Directus
  3. How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?

How to Properly Set Up Multiple Directus Environments (Dev, Sandbox, Prod) on Cloudron?

Scheduled Pinned Locked Moved Directus
14 Posts 6 Posters 210 Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jamesJ Offline
    jamesJ Offline
    james
    Staff
    wrote last edited by
    #5

    Hello @DualOSWinWiz

    One Idea:

    Since the prod instance is the master and has the highest priority of data, each dev / sandbox or stage could be a fresh clone from the latest app backup of the master.

    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 the master and all others will then have to re-deploy from the new master.

    D 1 Reply Last reply
    1
    • D DualOSWinWiz

      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

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote last edited by jdaviescoates
      #6

      @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? 🤷

      I use Cloudron with Gandi & Hetzner

      D 1 Reply Last reply
      2
      • jamesJ james

        Hello @DualOSWinWiz

        One Idea:

        Since the prod instance is the master and has the highest priority of data, each dev / sandbox or stage could be a fresh clone from the latest app backup of the master.

        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 the master and all others will then have to re-deploy from the new master.

        D Offline
        D Offline
        DualOSWinWiz
        wrote last edited by
        #7

        @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

        1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates

          @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? 🤷

          D Offline
          D Offline
          DualOSWinWiz
          wrote last edited by
          #8

          @jdaviescoates i tried multiple things for synching and app start creating data integrity errors.

          jdaviescoatesJ 1 Reply Last reply
          1
          • robiR Offline
            robiR Offline
            robi
            wrote last edited by
            #9

            Doesn't Directus support more than one project at a time?

            Conscious tech

            D 1 Reply Last reply
            1
            • D DualOSWinWiz

              @jdaviescoates i tried multiple things for synching and app start creating data integrity errors.

              jdaviescoatesJ Offline
              jdaviescoatesJ Offline
              jdaviescoates
              wrote last edited by
              #10

              @DualOSWinWiz have you tried cloning from a backup?

              I use Cloudron with Gandi & Hetzner

              D 1 Reply Last reply
              0
              • jdaviescoatesJ jdaviescoates

                @DualOSWinWiz have you tried cloning from a backup?

                D Offline
                D Offline
                DualOSWinWiz
                wrote last edited by
                #11

                @jdaviescoates yes issue is Data priority on production

                jdaviescoatesJ 1 Reply Last reply
                1
                • robiR robi

                  Doesn't Directus support more than one project at a time?

                  D Offline
                  D Offline
                  DualOSWinWiz
                  wrote last edited by
                  #12

                  @robi i didn't saw any documentation on that

                  1 Reply Last reply
                  0
                  • D DualOSWinWiz

                    @jdaviescoates yes issue is Data priority on production

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote last edited by
                    #13

                    @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.

                    I use Cloudron with Gandi & Hetzner

                    D 1 Reply Last reply
                    0
                    • jdaviescoatesJ jdaviescoates

                      @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.

                      D Offline
                      D Offline
                      DualOSWinWiz
                      wrote last edited by
                      #14

                      @jdaviescoates correct

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Bookmarks
                      • Search