From 3a19d14e3aa36e91be1c72e552f8a6530d0b60f4 Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Thu, 28 Feb 2019 13:55:47 +0100 Subject: [PATCH] Introducing a Vagrantfile for testing \o --- .gitignore | 1 + Vagrantfile | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 Vagrantfile diff --git a/.gitignore b/.gitignore index 3360ccb..6e9dadb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ conf/config.local.php +.vagrant diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..5d5e6ec --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,36 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com') + +# Load ~/.VagrantFile if exist, permit local config provider +vagrantfile = File.join("#{Dir.home}", '.VagrantFile') +load File.expand_path(vagrantfile) if File.exists?(vagrantfile) + +Vagrant.configure('2') do |config| + config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git'] + + config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true + config.vm.network "forwarded_port", guest: 443, host: 8443, auto_correct: true + + # Prevent TTY Errors (copied from laravel/homestead: "homestead.rb" file)... By default this is "bash -l". + config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" + + $deps = <