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

# -*- mode: ruby -*-
# vi: set ft=ruby :
# Load ~/.VagrantFile if exist, permit local config provider
vagrantfile = File.join("#{Dir.home}", '.VagrantFile')
load File.expand_path(vagrantfile) if File.exists?(vagrantfile)
Vagrant.configure('2') do |config|
config.vm.synced_folder "./", "/vagrant", type: "rsync", rsync__exclude: [ '.vagrant', '.git'] "forwarded_port", guest: 80, host: 8080, auto_correct: true "forwarded_port", guest: 443, host: 8443, auto_correct: true
# Prevent TTY Errors (copied from laravel/homestead: "homestead.rb" file)... By default this is "bash -l". = "bash -c 'BASH_ENV=/etc/profile exec bash'"
$deps = <<SCRIPT
sed -e '/RewriteRule/ s/^#*/#/' -i /etc/apache2/sites-available/evoadmin.conf
sed -e '/RewriteCond/ s/^#*/#/' -i /etc/apache2/sites-available/evoadmin.conf
systemctl restart apache2
rm -rf /home/evoadmin/www/
rm -rf /usr/share/scripts/evoadmin/
ln -s /vagrant/ /home/evoadmin/www
ln -s /vagrant/scripts /usr/share/scripts/evoadmin
config.vm.define :packweb do |node|
node.vm.hostname = "" = "evolix/packweb"
node.vm.provision "deps", type: "shell", :inline => $deps