Skip to content

Commit

Permalink
work on issue #4 and start provisioning with vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
paralax committed May 24, 2017
1 parent 7f9ff0f commit cf1d5ff
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Vagrant.bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apt-get -qq update
apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php7.0 \
php7.0 \
git
apt-get -qy autoremove
apt-get -qy clean
a2enmod php7.0 rewrite
echo "ServerRoot /var/www/html" >> /etc/apache2/apache2.conf
rm -f /var/www/html/index.html
service apache2 reload
13 changes: 13 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = "lfilabs"
config.vm.network :forwarded_port, host: 8080, guest: 80
config.vm.provision :shell, path: "Vagrant.bootstrap.sh"
end

0 comments on commit cf1d5ff

Please sign in to comment.