Announcement

Collapse
No announcement yet.

Need to reconfigure connection EVERY deploy????

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Need to reconfigure connection EVERY deploy????

    Do I have to reconfigure the database connection EACH time I deploy??

    I assume I have to use deploy everytime I update an application and want to make it live?

    If I have 20 applications, and everything is going well, and I release an update for an application, do I deploy? And once I deploy it, I have to go thru and reconfigure the connection every time?? I understand I could probably just copy the INI file but I think that isn't conducive...

    Any ideas??
    Thanks

  • #2
    Re: Need to reconfigure connection EVERY deploy????

    Hello,

    You can copy the database connection under <PROFILES>.

    If you have to update applications within a project, and they were generated on the same Scriptcase release (e.g. 5.2.0041), you can deploy just that application. Make sure to uncheck "Deploy with the common libraries" as they were already deployed.

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      Re: Need to reconfigure connection EVERY deploy????

      We also have LOTS of problems with this - especially with the Advanced deploy and template - randomly it will reset the production DB connections

      Can anyone tell me WHERE the runtime prod config is sorted ? Seems to be in _lib/conf/prod.config.php BUT just today I saw the connections erased, then I added them back, and still problems and this file never changed. I can't see where/how it's storing these when they can work for some users with this file empty.

      So where are all runtime DB connections and other items stored ?

      We run under FPM which in theory might be caching, but this is very painful and we can't have production killed randomly like this.

      I also see the temp dir is wrong after many deployments - the whole how and what is deployed where is very poorly documented for troubleshooting things like this.

      And the Advanced Option has many directories set by default that are not correct, but not sure how to change them and worry we've deployed incorrectly this way, too (the dev and prod environments are currently on the same server, different directories, but moving this month).

      If we want to update apps often (we have hundreds) what is the safest way ? I thought the Advanced template with the Library, etc. options turned off.

      Steve

      Comment


      • #4
        Re: Need to reconfigure connection EVERY deploy????

        [quote author=mushero link=topic=5782.msg14598#msg14598 date=1327299839]
        We also have LOTS of problems with this - especially with the Advanced deploy and template - randomly it will reset the production DB connections

        Can anyone tell me WHERE the runtime prod config is sorted ? Seems to be in _lib/conf/prod.config.php BUT just today I saw the connections erased, then I added them back, and still problems and this file never changed. I can't see where/how it's storing these when they can work for some users with this file empty.

        So where are all runtime DB connections and other items stored ?
        [/quote]

        On typical deployment the DB connections are stored on "/webServerRoot/project/_lib/conf/prod.config.php" (e.j. /usr/local/Zend/apache2/htdocs/test/_lib/conf/prod.config.php".

        All connections are under <PROFILES>.

        We run under FPM which in theory might be caching, but this is very painful and we can't have production killed randomly like this.

        I also see the temp dir is wrong after many deployments - the whole how and what is deployed where is very poorly documented for troubleshooting things like this.
        I could not understand what you meant by "I also see the temp dir is wrong after many deployments".


        And the Advanced Option has many directories set by default that are not correct, but not sure how to change them and worry we've deployed incorrectly this way, too (the dev and prod environments are currently on the same server, different directories, but moving this month).

        If we want to update apps often (we have hundreds) what is the safest way ? I thought the Advanced template with the Library, etc. options turned off.

        Steve
        On the advanced deployment, you may set any directory of your choice, just make sure to download the common libraries and add them to your _lib folder.

        The safest way to update is to clear your tmp folder under "/scriptcase/tmp", then generate the ZIP file, move to your server and once it is within your server, extract the deployment file.

        regards,
        Bernhard Bernsmann

        Comment

        Working...
        X