Jump to content

Which Prestashop demo data prevention flags work in 9.0.0?


phwraengck

Recommended Posts

Hello,

Which flag (PS_INSTALL_DEMO, PS_DEMO_MODE, --install_data) ensures that the demo data are not installed in Prestashop 9.0.0? I've tried all of the three and none of them appear to work.

Which has worked for you?

Thanks

Link to comment
Share on other sites

  • 1 month later...

I am trying to do an automated install using docker compose, by setting:

PS_INSTALL_AUTO: 1

 

however the prestashop docker image prestashop:9.0-fpm runs /tmp/docker_run.sh which executes this index_cli command:

        echo "\n* Launching the installer script..."
        runuser -g www-data -u www-data -- php -d memory_limit=-1 /var/www/html/$PS_FOLDER_INSTALL/index_cli.php \
        --domain="$PS_DOMAIN" --db_server=$DB_SERVER:$DB_PORT --db_name="$DB_NAME" --db_user=$DB_USER \
        --db_password=$DB_PASSWD --prefix="$DB_PREFIX" --firstname="John" --lastname="Doe" \
        --password="$ADMIN_PASSWD" --email="$ADMIN_MAIL" --language=$PS_LANGUAGE --country=$PS_COUNTRY \
        --all_languages=$PS_ALL_LANGUAGES --newsletter=0 --send_email=0 --ssl=$PS_ENABLE_SSL

 

As you can see it does not contain --fixtures .. Does that mean that it is not possible to not install demo data with the default presta image?

Link to comment
Share on other sites

16 hours ago, ludom said:

As you can see it does not contain --fixtures .. Does that mean that it is not possible to not install demo data with the default presta image?

For now I have updated the docker_run.sh script to include 

--fixtures=$PS_INSTALL_DEMO_DATA

and mounted it into the container. 

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