Skip to content

Commit

Permalink
My custom setup with my configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
betojsx committed Oct 22, 2017
1 parent 1ec57ff commit 3a2ad13
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Vagrant.configure("2") do |config|

config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "wpdistillery.dev"
config.vm.hostname = "wpserver.dev"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]

# Windows Support
Expand Down
16 changes: 8 additions & 8 deletions wpdistillery/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ wpfolder: public
wpversion: latest

# language/timezone
wplocale: en_US
timezone: "America/New_York"
wplocale: pt_BR
timezone: "America/Recife"

# admin user settings
admin:
user: admin
password: admin
email: [email protected]
first_name: ""
last_name: ""
user: beto
password: loading7
email: [email protected]
first_name: "Beto"
last_name: "da Silva"

# scotch box db access
db:
Expand All @@ -41,7 +41,7 @@ db:
#################################################################

wpsettings:
url: wpdistillery.dev
url: wpserver.dev
title: Example Title
description: Example Description
permalink_structure: "/%postname%/"
Expand Down
12 changes: 7 additions & 5 deletions wpdistillery/provision.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
#!/usr/bin/env bash
#
# WPDIstillery provisioning file
# updated to use nightly build of WP-CLI
#
# Author: Flurin Dürst
# Author: John Pitchko/Flurin Dürst
# URL: https://wpdistillery.org
#
# File version 1.1.0
# File version 1.1.1

# update WP-CLI
# since Scotch Box 3.0 (php7), we have to reinstall WP-CLI

echo "== Update WP CLI (re-install) =="
cd ../../../
sudo rm usr/local/bin/wp
sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
sudo chmod +x wp-cli.phar
sudo mv wp-cli.phar /usr/local/bin/wp
sudo curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar
sudo chmod +x wp-cli-nightly.phar
sudo mv wp-cli-nightly.phar /usr/local/bin/wp
echo "WP-CLI Update successful"

# run WPDistillery
Expand Down

0 comments on commit 3a2ad13

Please sign in to comment.