Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Or: DOCKER_IMAGE_PRESTASHOP=prestashop/prestashop-flashlight:8.1.3-alpine
# DOCKER_IMAGE_PRESTASHOP=prestashop/prestashop-flashlight:1.7.7.8-7.3
# DOCKER_IMAGE_PRESTASHOP=prestashop/prestashop-flashlight:1.7.6.9-7.2
DOCKER_IMAGE_PRESTASHOP=prestashop/prestashop-flashlight:nightly
HOST_PORT_BIND_PRESTASHOP=8005
HOST_PORT_BIND_MYSQL=3307
HOST_PORT_BIND_PHP_MY_ADMIN=6065

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,11 @@
<?php
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,38 @@
#!/bin/sh
#
# This is an init-script for prestashop-flashlight.
#
# Storing a folder in /var/www/html/modules is not enough to register the module
# into PrestaShop, hence why we have to call the console install CLI.
#
set -eu
error() {
printf "\e[1;31m%s\e[0m\n" "${1:-Unknown error}"
exit "${2:-1}"
}
run_user() {
sudo -g www-data -u www-data -- "$@"
}
# Missing PsAccountsPresenter for now, will be fixed soon in https://github.com/PrestaShopCorp/ps_accounts_mock
# /!\ You will have to manually instrall ps_accounts yourself.
# ps_accounts_mock_install() {
# echo "* [ps_accounts_mock] downloading..."
# wget -q -O /tmp/ps_accounts.zip "https://github.com/PrestaShopCorp/ps_accounts_mock/releases/download/v1.0.0/ps_accounts.zip"
# echo "* [ps_accounts_mock] unziping..."
# run_user unzip -qq /tmp/ps_accounts.zip -d /var/www/html/modules
# echo "* [ps_accounts_mock] installing the module..."
# cd "$PS_FOLDER"
# run_user php -d memory_limit=-1 bin/console prestashop:module --no-interaction install "ps_accounts"
# }
psxmarketingwithgoogle_install() {
echo "* [psxmarketingwithgoogle] installing the module..."
[ ! -d "./modules/psxmarketingwithgoogle/vendor" ] && error "please install composer dependencies first" 2
run_user php -d memory_limit=-1 bin/console prestashop:module --no-interaction install "psxmarketingwithgoogle"
}
# ps_accounts_mock_install
psxmarketingwithgoogle_install