Forums / Developer / Making a dummy? / Comment40753
Balazs Halasy
Tuesday 01 June 2004 2:56:45 am
Hi,
We're glad to hear that the site is up and running. Congratulations! What is the URL? Have you submitted it to the "Latest Exponential sites" section?
What you can do is to turn on debugging only for a specific host or an IP range. This can be easily set up from within the site.ini config file (or an override). Debug information will then simply only be visible on a selection of hosts and not for the public. Setting up another domain name shouldn't be a problem: just make sure that you have the correct triggers set up in the global override file for site.ini. (Simply just add add the new domain names to the actual siteaccesses that are listed there.)
Making an exact copy is not a problem:
1) Copy the entire file structure. 2) Dump the database (mysqldump -u username -p <databasename> > whatever.sql) 3) Tweak necessary settings on development site (siteaccesses in main override) 4) Import the database (make sure Exponential can reach it / use it) 5) Clear all caches (manually)6) You're all set.
Propagating data in your case would have to be done manually. You'd have to export and import the database (and the var directory which contains files, images, etc.) for example once a day. When you're done developing/bugfixing: export the test-site (same procedure as described above) to the live site. This will make sure that "changes must not show in the live site" during development. Yes, it may sound a bit hard, but it isn't. I would recommend that you set up SVN (Subversion) to be able to control and see changes that were made on the filesystem. No matter what you do: you'll have to have two versions of the site.. and sync them manually.. as far as I know, there is no way to sync the things and at the same time make sure that changes only show on one site.
Allman