ale.pixel Posted March 20 Share Posted March 20 Hello everyone! I am trying to clone a PrestaShop 1.7 installation of a live site to make a staging version of it for testing purposes. I am technically capable of performing it but I am wondering about the correct steps I have to take. I have summed them up in a list, could someone please tell me if it's correct before I proceed? I have already searched for a guide but it seems to be always missing something and it doesn't clarify some steps. set the live site into maintenance mode switch all payment modules (like PayPal) and Google/facebook feeds on test environment Live site Database backup (which tables can I avoid to export? I am not interested in past orders or customers account) Creating new staging Database and importing the Live site one Copy the live site into a subfolder (ex. /dev) without the cache folder /var/cache Link the staging Database with the staging website, along with the shop url on /app/config/parameters.php Edit the robots.txt files to avoid indexing and crawlers Have I forgot something essential? Are the steps all in the correct order? Thanks in advance to anyone wishing to help me! 🙂 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 20 Share Posted March 20 (edited) Hi @ale.pixel, recommended method. Set live site to maintenance backup all files (except var/cache/*) backup database Remove maintenance to live site Edit sql backup file and change all prod.domain.ext to staging.domain.ext idem in .htaccess file import database change app/config/parameters.php to your staging sql server go to staging backoffice and change payment modules to test disable analytics like Google analytics to avoid staging to be indexing change robots.txt is not enough, just a recommendation 😞 I suggest you to protect with a .htpasswd Check for specific modules that communicate with external services like Brevo, Boxtal... if they have to be active in staging Edited March 20 by Prestashop Addict (see edit history) 1 Link to comment Share on other sites More sharing options...
ale.pixel Posted March 20 Author Share Posted March 20 Thank you very much, this is exactly what I needed to know! One more questione about the step 3: is there any table I can avoid to export? Like customers and orders for example, which I would gladly remove on the staging site. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 21 Share Posted March 21 Il y a 15 heures, ale.pixel a dit : Thank you very much, this is exactly what I needed to know! One more questione about the step 3: is there any table I can avoid to export? Like customers and orders for example, which I would gladly remove on the staging site. No you need all tables, if you want PS works correctly. And if you want to make real tests in staging you need everything. Staging should be considerate as a clone before evolution. Link to comment Share on other sites More sharing options...
ale.pixel Posted March 22 Author Share Posted March 22 Got it! Thank you for the advices! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now