Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Vagrantfile steps with wp-development-up #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ Vagrant.configure('2') do |config|
# We have tried using NFS but it's super slow compared to synced_folder
config.vm.synced_folder DIR, '/data/wordpress/', owner: 'vagrant', group: 'vagrant', mount_options: ['dmode=775', 'fmode=775']


# For Self-signed ssl-certificate
ssl_cert_path = File.join(DIR,'.vagrant','ssl')
unless File.exists? File.join(ssl_cert_path,'development.crt')
config.vm.provision :shell, :inline => "wp-generate-ssl"
end

# Add SSH Public Key from developer home folder into vagrant
if File.exists? File.join(Dir.home, ".ssh", "id_rsa.pub")
id_rsa_ssh_key_pub = File.read(File.join(Dir.home, ".ssh", "id_rsa.pub"))
Expand Down Expand Up @@ -270,11 +263,6 @@ def vagrant_triggers_plugin_triggers(vagrant_config, site_config)
# Always run this when Vagrant triggers that site is up
system "vagrant ssh -c wp-development-up"

# Don't activate git hooks, just notify them
if File.exists?( File.join(DIR,'.git', 'hooks', 'pre-commit') )
puts "If you want to use a git pre-commit hook please run 'wp-activate-git-hooks' inside the Vagrant box."
end

case RbConfig::CONFIG['host_os']
when /darwin/
# Do OS X specific things
Expand Down