Skip to content

Instantly share code, notes, and snippets.

@CodingItWrong
Created May 22, 2017 12:49
Show Gist options
  • Save CodingItWrong/a8c11c4891dddcf45eaaac4aaf81f7cb to your computer and use it in GitHub Desktop.
Save CodingItWrong/a8c11c4891dddcf45eaaac4aaf81f7cb to your computer and use it in GitHub Desktop.
Vapor Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 8080, host: 8082, host_ip: "127.0.0.1"
config.vm.synced_folder ".", "/app"
config.vm.provision "shell", inline: <<-SHELL
eval "$(curl -sL https://apt.vapor.sh)"
sudo apt-get -y install swift vapor postgresql postgresql-contrib
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment