Announcement

Collapse
No announcement yet.

External configuration

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

  • External configuration

    Hello!
    I need a project to run two instances on the same server.
    Each instance should connect to its own database, on a particular port, and with a different theme.
    Can I lift those settings from an external file?
    Where in the project should I configure?
    Thank you very much!
    Adrián E. Santarelli
    Analista Universitario en Sistemas

    SDigitales
    Pueyrredon 935
    (2630) - Firmat - Santa Fe -
    R. Argentina Tel.03465-420494
    email: asantarelli@sdigitales.com.ar
    Web: http://www.sdigitales.com.ar
    Skype: sdigitales

  • #2
    It depends on how you have build things. You can upload the application twice on two different directories. Then they both will have their own configuration. Other option is that you have one source, but change connection in the code using macro's. Depending on what you have done, you can use a different connectionid or create your own within the code.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Alternatively you can configure your apache conf files so that certain apps only start under a subdir and others start under another subdir. For that you can use multiple listen statements. Check out the pages on apache 2.4 for more details.

      Comment


      • #4
        Thanks!!! I try the macro option...
        Adrián E. Santarelli
        Analista Universitario en Sistemas

        SDigitales
        Pueyrredon 935
        (2630) - Firmat - Santa Fe -
        R. Argentina Tel.03465-420494
        email: asantarelli@sdigitales.com.ar
        Web: http://www.sdigitales.com.ar
        Skype: sdigitales

        Comment

        Working...
        X