site d'infos
-
git pull
-
composer install
-
npm install
-
modifier le .env => ligne 28 : 'DATABASE_URL=mysql://user:password@localhost:port(ex : 3306 Windows, 8888 Mac)/infaux'
-
ajouter au .env : MERCURE_PUBLISH_URL=http://localhost:3000/.well-known/mercure MERCURE_JWT_KEY=test MERCURE_JWT_TOKEN=abcde
-
php bin/console d:d:d
-
php bin/console d:d:c
-
php bin/console d:s:u --force
-
php bin/console h:f:l
-
php bin/console c:c
-
npm run watch
-
php bin/console s:run
Linux
./mercure_lin/mercure --jwt-key='mdptest' --addr=':3000' --debug --cors-allowed-origins='http://34.77.181.91' --publish-allowed-origins='http://34.77.181.91'
Windows
export JWT_KEY='mdptest'; export ADDR=':3000'; export DEMO='0'; export ALLOW_ANONYMOUS='0'; export CORS_ALLOWED_ORIGINS=http://localhost:8000; export PUBLISH_ALLOWED_ORIGINS='http://localhost'; ./mercure_win/mercure.exe
Generer un password bin/console security:encode-password 'mdptest'
- sudo systemctl restart mercure.service
- sudo systemctl stop mercure.service
- sudo systemctl start mercure.service
/var/www/mercure_lin/mercure --jwt-key='mdptest' --addr=':3000' --debug --cors-allowed-origins='https://www.infaux.ga/,http://localhost:8000/,https://infaux.ga/' acme_hosts='https://s-website.ga/.well-known/mercure/' use_forwarded_headers="true" DEMO=1 ALLOW_ANONYMOUS=1
Conf actuelle /var/www/mercure_lin/mercure --jwt-key='mdptest' --addr=':3000' --debug --cors-allowed-origins='*' acme_hosts='https://s-website.ga/.well-known/mercure/' use_forwarded_headers="true"
UPDATE wp_options SET option_value = replace(option_value, ':old', ':new') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = REPLACE (guid, ':old', ':new');
UPDATE wp_posts SET post_content = REPLACE (post_content, ':old', ':new');
UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, ':old', ':new');