Panel d'administration de serveur web.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.3 KiB

  1. # -*- mode: ruby -*-
  2. # vi: set ft=ruby :
  3. Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')
  4. # Load ~/.VagrantFile if exist, permit local config provider
  5. vagrantfile = File.join("#{Dir.home}", '.VagrantFile')
  6. load File.expand_path(vagrantfile) if File.exists?(vagrantfile)
  7. Vagrant.configure('2') do |config|
  8. config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git']
  9. config.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
  10. config.vm.network "forwarded_port", guest: 443, host: 8443, auto_correct: true
  11. # Prevent TTY Errors (copied from laravel/homestead: "homestead.rb" file)... By default this is "bash -l".
  12. config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
  13. $deps = <<SCRIPT
  14. sed -e '/RewriteRule/ s/^#*/#/' -i /etc/apache2/sites-available/evoadmin.conf
  15. sed -e '/RewriteCond/ s/^#*/#/' -i /etc/apache2/sites-available/evoadmin.conf
  16. systemctl restart apache2
  17. rm -rf /home/evoadmin/www/
  18. rm -rf /usr/share/scripts/evoadmin/
  19. ln -s /vagrant/ /home/evoadmin/www
  20. ln -s /vagrant/scripts /usr/share/scripts/evoadmin
  21. SCRIPT
  22. config.vm.define :packweb do |node|
  23. node.vm.hostname = "evoadmin-web.example.com"
  24. node.vm.box = "evolix/packweb"
  25. node.vm.provision "deps", type: "shell", :inline => $deps
  26. end
  27. end