PrestaShop / docker

🐳
https://hub.docker.com/r/prestashop/prestashop/
MIT License
257 stars 176 forks source link

how to change PS_SHOP_DOMAIN #361

Open qiaofeng1227 opened 6 months ago

qiaofeng1227 commented 6 months ago

I use prestashop image, PS_ The value of DOMAIN is the domain name to start the container, and accessing everything is normal.

I changed the domain name to IP: PORT for access. I entered the preview container and executed "PHP bin/console preview: config set PS-SHOP_DOMAIN -- value=ip: port". I found that the database value had been modified, but ip: port could not access it? auto go to domain in the browser.

root@01122ebef278:/var/www/html#  php bin/console prestashop:config get PS_SHOP_DOMAIN

 [OK] PS_SHOP_DOMAIN=47.76.130.106:9111