Created
August 11, 2020 13:11
-
-
Save oldlastman/38e7a0412144cb1b7a51d259ed558ee4 to your computer and use it in GitHub Desktop.
Prestashop migrate domain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## conectar a mysql en vagrant, https://github.com/sinermedia/prestashop-vagrant.git | |
## connect to mysql on vagrant. actual VM https://github.com/sinermedia/prestashop-vagrant.git | |
mysql -u root --database prestashop -p | |
pass prestashop | |
## article from https://blog.floriancourgey.com/2018/07/changing-domain-and-base-url-for-prestashop-1-7/ | |
## importar datos desde dump en mysql vagrant | |
## importa data form mysql dump to vagrant | |
mysql -u root -p --database prestashop < /vagrant/prestashop/file.sql | |
## cambios datos acceso base de datos | |
## database credential change | |
# 0. edit your Database parameters in /app/config/parameters.php | |
## cambios dominio | |
## database domain change | |
# then, use these lines to update your configuration for your new host/domain | |
# 1. Shop URL remember change database prefix * | |
update *_shop_url set domain="localhost:8000", domain_ssl="localhost:8000" where main=1 and domain="www.staging.lahuertagrowshop.com"; | |
# 2. Prefix remember change database prefix * y and your specific physical_uri | |
update p2020s_shop_url set physical_uri="/" where main=1 and physical_uri="/algo necesario/"; | |
# 3. Enable (or disable) HTTPS | |
update *_configuration set PS_SSL_ENABLED=1; # 1=enable HTTPS, 0=disable HTTPS | |
# 4. Edit your /.htaccess by replacing "^my-domain-1$" by "^my-domain-2$" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment