From 1a587bdb70e2aaaac9a72ed0e803baec9b44e9a0 Mon Sep 17 00:00:00 2001 From: camael24 Date: Mon, 20 Jul 2015 17:03:34 +0200 Subject: [PATCH] Support Vagrant --- build/Vagrantfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 build/Vagrantfile diff --git a/build/Vagrantfile b/build/Vagrantfile new file mode 100644 index 0000000..e40aca1 --- /dev/null +++ b/build/Vagrantfile @@ -0,0 +1,27 @@ +Vagrant.configure(2) do |config| + config.vm.box = "ubuntu/trusty32" + config.vm.network "forwarded_port", guest: 80, host: 8080 + config.vm.synced_folder "../", "/taskboard" + config.vm.provision "shell", inline: <<-SHELL + sudo apt-get update + sudo apt-get install -y curl php5 php5-cli php5-sqlite sqlite3 apache2 libapache2-mod-php5 + sudo apt-get clean + sudo a2enmod rewrite + sudo a2enmod expires + echo " + ServerAdmin webmaster@localhost + DocumentRoot /taskboard + ErrorLog /var/log/apache2/error.log + CustomLog /var/log/apache2/access.log combined + + AllowOverride All + Options All + Require all granted + +" > /etc/apache2/sites-enabled/000-default.conf + sudo service apache2 restart + curl -sS https://getcomposer.org/installer | php + mv composer.phar /usr/local/bin/composer + cd /taskboard && composer install + SHELL +end \ No newline at end of file