WordPress development environment on Mac with Brew, Nginx, PHP 7, PHP-FPM, MariaDB, phpMyAdmin and more
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
if ( !function_exists( 'populate_roles' ) ) { | |
require_once( ABSPATH . 'wp-admin/includes/schema.php' ); | |
} | |
populate_roles(); |
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
{ | |
"exportFormatVersion": 2, | |
"exportTime": "2019-04-01 18:06:31", | |
"containerVersion": { | |
"path": "accounts/4701554052/containers/11452913/versions/0", | |
"accountId": "4701554052", | |
"containerId": "11452913", | |
"containerVersionId": "0", | |
"container": { | |
"path": "accounts/4701554052/containers/11452913", |