Jump to content

migrando do localhost para hospedagem?


Recommended Posts

Eu mantenho alguns comandos SQL para facilitar

 

 

no ambiente local


# local development environment
USE database_name;
UPDATE ps_configuration SET value = 'dev-prestashop.com' WHERE name = 'PS_SHOP_DOMAIN';
UPDATE ps_configuration SET value = 'dev-prestashop.com' WHERE name = 'PS_SHOP_DOMAIN_SSL';
UPDATE ps_configuration SET value = 'http://dev-prestashop.com/feed.rss' WHERE name = 'RSS_FEED_URL';
UPDATE ps_configuration SET value = 'http://dev-prestashop.com' WHERE name = 'CANONICAL_URL';
UPDATE ps_configuration SET value = 'http://dev-prestashop.com' WHERE name = 'MB_CANCEL_URL';
UPDATE `ps_shop_url` SET domain = 'dev-prestashop.com', domain_ssl = 'dev-prestashop.com', physical_uri = '/';

no server, online:

# production environment
USE protein_db;
UPDATE ps_configuration SET value = 'prestashop.com' WHERE name = 'PS_SHOP_DOMAIN';
UPDATE ps_configuration SET value = 'prestashop.com' WHERE name = 'PS_SHOP_DOMAIN_SSL';
UPDATE ps_configuration SET value = 'http://prestashop.com/feed.rss' WHERE name = 'RSS_FEED_URL';
UPDATE ps_configuration SET value = 'http://prestashop.com' WHERE name = 'CANONICAL_URL';
UPDATE ps_configuration SET value = 'http://prestashop.com' WHERE name = 'MB_CANCEL_URL';
UPDATE `ps_shop_url` SET domain = 'prestashop.com', domain_ssl = 'prestashop.com', physical_uri = '/';

Note que esses são parâmetros básicos.

Verifique na tabela "ps_configuration" se existe alguma coluna com "value" = "nome do dominio", pois pode existir outras configurações referentes a módulos terceiros.

 

 

Atenção a essa parte:

UPDATE `ps_shop_url` SET domain = 'dev-prestashop.com', domain_ssl = 'dev-prestashop.com', physical_uri = '/';

Caso a loja esteja sob um folder, configure physical_uri de acordo.

Exemplo, se o site estiver em 

http://endereco/loja

O parâmetro "physical_uri" deve ser setado como "/loja/".

 

 

 

 

 

Após isso, excluir o cache:

 

/cache/smarty/cache

/cache/smarty/compile

 

Geralmente faço via SSH para excluir mais rápido.

Pelo FTP não recomendo devido quantidade de arquivos.

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...