Skip to content

Instantly share code, notes, and snippets.

@joshlevinson
Last active December 30, 2016 13:54
Show Gist options
  • Select an option

  • Save joshlevinson/d90ffab3ea61393e91c2 to your computer and use it in GitHub Desktop.

Select an option

Save joshlevinson/d90ffab3ea61393e91c2 to your computer and use it in GitHub Desktop.

Revisions

  1. joshlevinson revised this gist Dec 5, 2015. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion dev
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,2 @@
    # create at /etc/dnsmasq.d/dev in the vagrant guest
    # this file may be gone if the vagrant box is shut down, so either script its creation when vagrant boots, or recreate it every time.
    address=/dev/127.0.0.1
  2. joshlevinson revised this gist Dec 3, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dev
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # create at /etc/dnsmasq.d/dev in the vagrant guest
    # this file will be gone if the vagrant box is shut down, so either script its creation when vagrant boots, or recreate it every time.
    # this file may be gone if the vagrant box is shut down, so either script its creation when vagrant boots, or recreate it every time.
    address=/dev/127.0.0.1
  3. joshlevinson revised this gist Nov 2, 2015. 2 changed files with 3 additions and 3 deletions.
    2 changes: 1 addition & 1 deletion dev
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # create at /etc/dnsmasq.d/dev
    # create at /etc/dnsmasq.d/dev in the vagrant guest
    # this file will be gone if the vagrant box is shut down, so either script its creation when vagrant boots, or recreate it every time.
    address=/dev/127.0.0.1
    4 changes: 2 additions & 2 deletions wildcard-hosts-nginx.conf
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # create in /srv/config/nginx/sites/wildcard.conf
    # this dir is copied during provision, if you don't want to re-provision, run:
    # create in your vagrant directory @ config/nginx/sites/wildcard.conf
    # this dir is copied during provision, if you don't want to re-provision, run this in a vagrant shell:
    # sudo rsync -rvzh --delete /srv/config/nginx-config/sites/ /etc/nginx/custom-sites/
    server {
    listen 80;
  4. joshlevinson revised this gist Nov 2, 2015. No changes.
  5. joshlevinson revised this gist Nov 2, 2015. 2 changed files with 4 additions and 2 deletions.
    2 changes: 1 addition & 1 deletion dev
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    #create at /etc/dnsmasq.d/dev
    # create at /etc/dnsmasq.d/dev
    # this file will be gone if the vagrant box is shut down, so either script its creation when vagrant boots, or recreate it every time.
    address=/dev/127.0.0.1
    4 changes: 3 additions & 1 deletion wildcard-hosts-nginx.conf
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    #create in /config/nginx/sites/wildcard.conf
    # create in /srv/config/nginx/sites/wildcard.conf
    # this dir is copied during provision, if you don't want to re-provision, run:
    # sudo rsync -rvzh --delete /srv/config/nginx-config/sites/ /etc/nginx/custom-sites/
    server {
    listen 80;
    listen 443 ssl;
  6. joshlevinson revised this gist Nov 2, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions dev
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #create at /etc/dnsmasq.d/dev
    # this file will be gone if the vagrant box is shut down, so either script its creation when vagrant boots, or recreate it every time.
    address=/dev/127.0.0.1
  7. joshlevinson revised this gist Nov 2, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions WP CLI commands.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    vagrant ssh
    cd /srv/www/
    mkdir site-name && cd site-name && mkdir htdocs && cd htdocs
    wp core download
    wp core config --dbname=site-name --dbuser=root --dbpass=root
    wp db create
    wp core install --url=site-name.dev --title=Site --admin_user=admin --admin_pass=password [email protected]
  8. joshlevinson created this gist Nov 2, 2015.
    8 changes: 8 additions & 0 deletions wildcard-hosts-nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #create in /config/nginx/sites/wildcard.conf
    server {
    listen 80;
    listen 443 ssl;
    server_name ~^(?<name>.*)\.dev;
    root /srv/www/$name/htdocs;
    include /etc/nginx/nginx-wp-common.conf;
    }