Zen Cart Logo
Forums / General Questions / Which directory to install - Good Practices

Which directory to install - Good Practices

Locked

Views: 834

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
22 Nov 2007, 4:46 PM
#1
hobocs avatar

hobocs

New Zenner

Join Date:
Oct 2006
Location:
Markham, Ontario
Posts:
47
Plugin Contributions:
0

Which directory to install - Good Practices

I've created a "Test Store" in www.mydomain.com/teststore which I've been playing around. I'm using Dreamhost and this is where I installed it using their "One-Click" install facility.

I'm now ready to create a "Live" store.

What should I do? Create a new store in www.mydomain.com
or www.mydomain.com/prodstore.

Is it easy to move info from one environment to another (test to prod).

Thoughts / direction much appreciated.

22 Nov 2007, 4:50 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Which directory to install - Good Practices

As far as Good Practices go, having a Test setup is always a good idea.

If ready to go live then just copy everything within the 'teststore' dir. to your Document Root dir. - /home/userid/public_html/ for example.

Then you need to create a new database and change both config files to use the new path and new database.

You will then have a 'live' store whilst still having a separate setup for testing. The two are independent of each other so changes to one will not affect the other. Now you can "test" things in the "teststore" setup, to make sure they work as planned, then copy changes over to your "live" setup.

22 Nov 2007, 4:54 PM
#3
hobocs avatar

hobocs

New Zenner

Join Date:
Oct 2006
Location:
Markham, Ontario
Posts:
47
Plugin Contributions:
0

Re: Which directory to install - Good Practices

Ok, then you'd recommend a second (or main) install in my root.
And then as I make changes in test then I could move over to the "Prod" as required. (or just make them in the prod store.