-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add wpdistillery subfolder, add custom Vagrantfile
- Loading branch information
1 parent
6693749
commit 044ab97
Showing
5 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,4 @@ | |
.vagrant | ||
config_custom.yml | ||
npm-debug.log | ||
public | ||
Vagrantfile | ||
public |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
# | ||
# WPDistillery Vagrantfile for Scotch Box | ||
# | ||
# File Version: 1.0 | ||
|
||
Vagrant.configure("2") do |config| | ||
|
||
config.vm.box = "scotch/box" | ||
config.vm.network "private_network", ip: "192.168.33.10" | ||
config.vm.hostname = "wpdsrc.dev" # can i read this form config? # | ||
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] | ||
|
||
# Run Provisioning (update wp cli, set upload size to 64MB, run WPDistillery) | ||
# executed within the first `vagrant up` and every `vagrant provision` | ||
config.vm.provision "shell", path: "wpdistillery/provision.sh" | ||
|
||
# Update WordPress and all Plugins on vagrant up | ||
# executed within every `vagrant up` | ||
config.vm.provision "shell", | ||
inline: "echo \"== Update WordPress & Plugins ==\" && cd /var/www/public && wp core update && wp plugin update --all", run: "always", privileged: false | ||
|
||
# Enable NFS | ||
# config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] } | ||
|
||
end |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# WPDIstillery provisioning file | ||
# | ||
# Author: Flurin Dürst » github.com/flurinduerst | ||
# URL: https://github.com/flurinduerst/WPDistillery | ||
# Note: created with WPDistillery 2.0.0 | ||
# | ||
# File version 1.0.0 | ||
|
||
# update WP-CLI | ||
echo "== Update WP CLI ==" | ||
sudo wp cli update --yes --allow-root | ||
|
||
# set upload size to 64MB | ||
echo "== Update Max Filesize ==" | ||
sudo sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 64M/g' /etc/php5/apache2/php.ini | ||
sudo sed -i 's/post_max_size = 8M/post_max_size = 64M/g' /etc/php5/apache2/php.ini | ||
sudo service apache2 restart | ||
|
||
# run WPDistillery | ||
echo "== Run WPDistillery ==" | ||
cd ../../var/www/wpdistillery | ||
sudo -u vagrant bash wpdistillery.sh |
This file contains 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