Jump to content

How to make a Replica of my store for tests


Recommended Posts

Hi

 

I want to make a replica of my store for tests.

 

I am thinking that this could be like this:

 

Install PS on /public_html/TEST

Copy and overwrite the files from the live version to the test version

Backup Live Version BD and Import it on TEST

 

Will this work? I am not sure, mainly because of the modules.

 

Also, to keep it replicated can i regularly just copy and paste files and import DB from live version?

 

Thanks

Link to comment
Share on other sites

Hi

 

I want to make a replica of my store for tests.

 

I am thinking that this could be like this:

 

Install PS on /public_html/TEST

Copy and overwrite the files from the live version to the test version

Backup Live Version BD and Import it on TEST

 

Will this work? I am not sure, mainly because of the modules.

 

Also, to keep it replicated can i regularly just copy and paste files and import DB from live version?

 

Thanks

of course it will work.

i have one (sometimes more) to test new features and changes.

 

you don't need to install, just duplicate the db (in phpmyadmin its easy), copy all files to the folder, then change the url in the test shop.

i would only advise to use lowercase folders and urls to avoid conflicts.

  • Like 1
Link to comment
Share on other sites

of course it will work.

i have one (sometimes more) to test new features and changes.

 

you don't need to install, just duplicate the db (in phpmyadmin its easy), copy all files to the folder, then change the url in the test shop.

i would only advise to use lowercase folders and urls to avoid conflicts.

 

 

Thank you. as soon as i can i will try and leave feedback. End of the year is not easy.

Link to comment
Share on other sites

Make sure to Backup both your database and PrestaShop files manually. The DB backup is a good feature but when you are doing an upgrade or migration you want to make sure you also do it manually. You can learn how to here, How to Manually Back Up your PrestaShop Database and Files

 

After you do that,

 

1) Export your database using phpmyadmin

2)  Copy your Files from your Live store via FTP

3) Import your database into the new Local test database

4) Copy your Files into your new Local directory

5) Go into config/setting.inc.php of the Test site and make sure you have changed the database name 

6) Double check the test database to make sure that ps_configruation , ps_shop_name , and ps_shop_url is correctly inputted .

 

That really should be it, others may tell you an easier way but that is that way I've done it.

 

Copying Live to Local is much less of a hassle than copying Live to Live(test) domain because then you have modules with your existing links in it like your CMS links. 

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...