Guest User

Untitled

a guest
May 28th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Vagrant.configure("2") do |config|
  2. config.vm.box = "ubuntu/bionic64"
  3. config.vm.network "forwarded_port", guest: 80, host: 8000
  4. config.vm.provision "shell", inline: <<-SHELL
  5. apt-get update
  6. apt-get upgrade -y
  7. apt-get install -y nginx
  8. systemctl start nginx
  9.  
  10. ln -sf /vagrant /var/www/site
  11. ln -sf /vagrant/.provisions/site.conf /etc/nginx/conf.d/site.conf
  12.  
  13. systemctl reload nginx
  14. SHELL
  15. end
Add Comment
Please, Sign In to add comment