4 Replies Latest reply on Dec 20, 2006 9:31 AM by Stefan_K.

    Dev and Test on the same server?

    Dwight Level 1
      Is it possible to run Development and Test sites on the same Coldfusion Server? Will they have their own Coldfusion Administrator, etc? How is this done? How is licensing supported for this?

      Currently we have two websites setup on the same server but they share the same Coldfusion Administrator. We want to figure out a way that both can have their own coldfusion administrator. Reasons are for things like setting up DSNs and configuration changes. we want the Dev site to point to the Dev database and the Test site to point to the Test Database.

      Thanks
      Dwight
        • 1. Re: Dev and Test on the same server?
          Dan Bracuk Level 5
          give the two datasources different names in your administrator and, in your application.cfm file, use the cgi variables to determine which ones to use. This becomes an application variable. In fact, if you are smart, the same code can be used to look after the production system.
          • 2. Re: Dev and Test on the same server?
            Level 7
            Is it possible to run Development and Test sites on the same Coldfusion
            Server? Will they have their own Coldfusion Administrator, etc? How is
            this done? How is licensing supported for this?

            The Enterprise (Expensive) version of CF can do this. You can configure
            CF in "Multi-home" version where each instance of CF gets it's own JRun
            (Java) server with individual CF administrators.

            Without the Enterprise version, the easiest way is to use one of various
            software packages that can create multiple operating systems on the same
            physical box. Then each OS can be installed with a standard version of
            CF configured as desired.

            Either option is acceptable under normal licensing as the licenses are
            by CPU pairs, no matter how many personalities you split them into. As
            I understand it.
            • 3. Re: Dev and Test on the same server?
              Dwight Level 1
              Thanks for your quick replies. I think Dan's suggestion to use the application variable for Dev, Test, and Production is the best solution at this point.

              Dwight
              • 4. Re: Dev and Test on the same server?
                Stefan_K. Level 1
                If DEV and PROD-Applications run on same CF-server, be VERY carefull to use different names for the application-name (Application.ApplicationName).

                CF stores application-vars under that string, if both have the same, they share the application-var-scope.

                Happened once on me, everytime I called my dev-site, the application.datasource was set to dev-DB for the prod-application too.
                When noticing after some days ... part of prod-data was in dev-DB, rest in prod-DB.
                Biggest DB-mess I ever had !