From d85125fc12326713cdb0d013394de4e35ff26b26 Mon Sep 17 00:00:00 2001 From: Joosua Koskinen Date: Thu, 29 Apr 2021 14:58:30 +0300 Subject: [PATCH 1/2] Remove certificate generation from Vagrantfile Certificate generation is now done on Docker bootstrap. --- Vagrantfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index b69c30c..db851ba 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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")) From 74c4844903be746d72e28ce6b6cdf33e9b3e2a0f Mon Sep 17 00:00:00 2001 From: Joosua Koskinen Date: Thu, 29 Apr 2021 16:15:06 +0300 Subject: [PATCH 2/2] Remove git hook check from Vagrantfile The git hook check is now done on Docker bootstrap. --- Vagrantfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index db851ba..e4c28a2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -263,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