This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MAIL_DRIVER=smtp | |
| MAIL_HOST=localhost | |
| MAIL_PORT=1025 | |
| MAIL_USERNAME=null | |
| MAIL_PASSWORD=null | |
| MAIL_ENCRYPTION=null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DB_CONNECTION=mysql | |
| DB_HOST=db | |
| DB_PORT=3306 | |
| DB_DATABASE=db | |
| DB_USERNAME=db | |
| DB_PASSWORD=db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| read -r -p "Install WordPress with DDEV? [y/n]" response | |
| if [[ "$response" = "y" ]] | |
| then | |
| echo "$(tput setaf 1)Install WordPress...$(tput sgr0)" | |
| ddev config --project-type=php | |
| ddev composer create wordpress/skeleton --no-interaction --prefer-dist | |
| ddev config --docroot=wp --project-type=wordpress | |
| ddev restart | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define('APP_URL', ($_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http') . "://{$_SERVER['SERVER_NAME']}".str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME'])); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var msg1 = 'We miss you...'; | |
| var msg2 = '...come back!'; | |
| var original = document.title; | |
| var hold; | |
| $(window).focus(function() { | |
| clearInterval(hold); | |
| if (original) { | |
| document.title = original; | |
| } | |
| }).blur(function() { |