The purpose of this document is to setup a development enviroment that runs on Microsoft Windows.
- DDev
- Choco
- Docker Compsoe
- WSL 2
| */5 * * * * www-data /bin/bash /var/www/html/bin/sc_update.sh | |
| * * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:emails:send > /var/www/logs/cron.log 2>&1 | |
| */2 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:messages:send > /var/www/logs/cron.log 2>&1 | |
| 3,18,33,48 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:import > /var/www/logs/cron.log 2>&1 | |
| 4,19,34,49 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:webhooks:process > /var/www/logs/cron.log 2>&1 | |
| 6,21,36,51 * * * * www-data /usr/bin/php /var/www/html/bin/console mautic:broadcasts:send > /var/www/logs/cron.log 2>&1 | |
| 0 8,12 * * * www-data /usr/bin/php /var/www/html/bin/console mautic:reports:scheduler > /var/www/logs/cron.log 2>&1 | |
| 0 1 * * * www-data /usr/bin/php /var/www/html/bin/console mautic:donotsell:download > /var/www/logs/cron.log 2>&1 | |
| 5 1 * * * www-data /usr/bin/php /var/www/html/bin/console mautic:max-mind:purge > /var/www/logs/cron.log 2>&1 | |
| 0 0 * * 6 www-data /usr/bin/php /var/www/html/bin/co |
| #!/bin/sh | |
| set -e | |
| vendor/bin/phpunit | |
| (git push) || true | |
| git checkout production | |
| git merge master |
| <?php | |
| $loader->import('config.php'); | |
| if (file_exists(__DIR__.'/security_local.php')) { | |
| $loader->import('security_local.php'); | |
| } else { | |
| $loader->import('security.php'); | |
| } |
| sudo cp ca.homestead.homestead.crt /home/vagrant/code/ | |
| Import crt file to the certificate root | |
| redirect nginx to SSL only | |
| # force https-redirects | |
| if ($scheme = http) { | |
| return 301 https://$server_name$request_uri; | |
| } |
| --- | |
| ip: "192.168.10.10" | |
| memory: 2048 | |
| cpus: 1 | |
| provider: virtualbox | |
| backup: true | |
| authorize: ~/.ssh/id_rsa | |
| keys: |
| function getParameterByName(name) { | |
| var url = window.location.href; | |
| name = name.replace(/[\[\]]/g, "\\$&"); | |
| var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), | |
| results = regex.exec(url); | |
| if (!results) return null; | |
| if (!results[2]) return ''; | |
| return decodeURIComponent(results[2].replace(/\+/g, " ")); | |
| } |
| <html> | |
| <body> | |
| <script> | |
| function getParameterByName(name) { | |
| url = window.location.href; | |
| name = name.replace(/[\[\]]/g, "\\$&"); | |
| var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), | |
| results = regex.exec(url); | |
| if (!results) return null; | |
| if (!results[2]) return ''; |