DMXzone Server Connect Support Product Page

IS there a way to work from two servers?

Reported 03 Mar 2016 01:11:45
9
have this problem
03 Mar 2016 01:11:45 Brad Lawryk posted:
In my situation I would like to develop locally and then push to live server after testing. Right now there is no way that I can connect to my local test database while leaving the remote connection alone.

If I change my connection to pull from my local database it automatically updates the live server connection leaving the live server dead without connection to a database. I then have to set the connection to my live database to keep it functioning but then I can't further develop on my local machine without being connected to live data.

Is there a workaround for this or some way to stop the extension from automatically uploading the connection file to the live server?

Replies

Replied 03 Mar 2016 17:42:58
03 Mar 2016 17:42:58 Hans Haverlach replied:
Yes! I'm very much in favor for this option! It is very frustrating!
Replied 04 Mar 2016 16:02:21
04 Mar 2016 16:02:21 Greta Garberini replied:
The only workaround to this annoying fact I found so far, was to name the database on my local server exactly as the remote one AND use the same username / password credentials from the remote server.

It is frustrating because I used to name my local databases with comprehensive names, which is usually not always possible on remote servers.
Replied 04 Mar 2016 16:12:46
04 Mar 2016 16:12:46 Brad Lawryk replied:
That doesn't work for me Greta.

My Testing server uses 'localhost' amor the connection and the live server uses an IP address. Other than that my local testing server and the remote live server are identical.
Replied 04 Mar 2016 16:20:57
04 Mar 2016 16:20:57 Greta Garberini replied:
Sorry, this is no solution, then. I once fiddled with the two connection files (in DMXConnect/modules/Connections/ and DMXConnections), named those for the remote server "yourconnect_remote" and uploaded it via ftp. Up there I renamed them back. But whenever these files get updated, the remote ones are brutally overwritten again. I have not found a reasonabel way to prevent this.
If DMX would separate the connection string from the database structure, the propblem could be solved easily.
Replied 04 Mar 2016 16:26:01
04 Mar 2016 16:26:01 Brad Lawryk replied:
Yeah, I used to upload the connection file then on my local one just edit the connection and save that way I could work on a local database and then when the files are uploaded they will be using the remote database. But now the connection file gets overwritten and uploaded overtime so this can no longer be done.

Kinda defeats the purpose of having a testing server.

Reply to this topic