Skip to content

Instantly share code, notes, and snippets.

@travm
Last active February 19, 2016 21:12
Show Gist options
  • Save travm/2ef5ad0a6c679855df69 to your computer and use it in GitHub Desktop.
Save travm/2ef5ad0a6c679855df69 to your computer and use it in GitHub Desktop.

Revisions

  1. travm revised this gist Sep 15, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vagrantfile-kirby
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ Vagrant.configure("2") do |config|
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    config.vm.provision :shell, :inline => "apt-get install -q -y python-software-properties python"
    config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    config.vm.provision :shell, :inline => "apt-get install -q -y figlet g++ make git curl apache2 libapache2-mod-php5 php5-curl php5-cli"
    config.vm.provision :shell, :inline => "apt-get install -q -y figlet g++ make git curl apache2 libapache2-mod-php5 php5-curl php5-cli php5-gd"
    config.vm.provision :shell, :inline => "sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf"
    config.vm.provision :shell, :inline => "sudo a2enmod rewrite"
    config.vm.provision :shell, :inline => "sudo a2enmod expires"
  2. travm revised this gist Jul 29, 2015. 1 changed file with 9 additions and 11 deletions.
    20 changes: 9 additions & 11 deletions vagrantfile-kirby
    Original file line number Diff line number Diff line change
    @@ -10,29 +10,27 @@ Vagrant.configure("2") do |config|
    # Forwarded Ports
    config.vm.network :forwarded_port, guest: 80, host: 8888

    # Shared folders
    # Shared Folders
    config.vm.synced_folder "./", "/vagrant",
    owner: "vagrant",
    group: "www-data",
    mount_options: ["dmode=775,fmode=664"]

    # Setup
    # Provisioning
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    config.vm.provision :shell, :inline => "apt-get install -q -y cowsay python-software-properties python g++ make git curl apache2 libapache2-mod-php5"
    config.vm.provision :shell, :inline => "sed -i '/AllowOverride None/c AllowOverride All' /etc/apache2/sites-available/default"
    config.vm.provision :shell, :inline => "apt-get install -q -y python-software-properties python"
    config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    config.vm.provision :shell, :inline => "apt-get install -q -y figlet g++ make git curl apache2 libapache2-mod-php5 php5-curl php5-cli"
    config.vm.provision :shell, :inline => "sed -i 's/AllowOverride None/AllowOverride All/g' /etc/apache2/apache2.conf"
    config.vm.provision :shell, :inline => "sudo a2enmod rewrite"
    config.vm.provision :shell, :inline => "sudo a2enmod expires"
    config.vm.provision :shell, :inline => "service apache2 restart"
    config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    config.vm.provision :shell, :inline => "apt-get install -q -y php5-cli php5-curl"
    config.vm.provision :shell, :inline => "curl -s https://getcomposer.org/installer | php"
    config.vm.provision :shell, :inline => "mv ./composer.phar /usr/local/bin/composer"

    # Change Apache Working Directory
    config.vm.provision :shell, :inline => "rm -rf /var/www"
    config.vm.provision :shell, :inline => "ln -fs /vagrant /var/www"
    config.vm.provision :shell, :inline => "rm -rf /var/www/html"
    config.vm.provision :shell, :inline => "ln -fs /vagrant /var/www/html"

    # Done
    config.vm.provision :shell, :inline => "cowsay \"Your development environment is ready!\""
    config.vm.provision :shell, :inline => "figlet READY"

    end
  3. travm revised this gist Feb 3, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion vagrantfile-kirby
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ Vagrant.configure("2") do |config|
    config.vm.box_url = "http://files.vagrantup.com/precise64.box"

    # Forwarded Ports
    config.vm.network :forwarded_port, guest: 80, host: 4567
    config.vm.network :forwarded_port, guest: 80, host: 8888

    # Shared folders
    config.vm.synced_folder "./", "/vagrant",
    @@ -21,6 +21,7 @@ Vagrant.configure("2") do |config|
    config.vm.provision :shell, :inline => "apt-get install -q -y cowsay python-software-properties python g++ make git curl apache2 libapache2-mod-php5"
    config.vm.provision :shell, :inline => "sed -i '/AllowOverride None/c AllowOverride All' /etc/apache2/sites-available/default"
    config.vm.provision :shell, :inline => "sudo a2enmod rewrite"
    config.vm.provision :shell, :inline => "sudo a2enmod expires"
    config.vm.provision :shell, :inline => "service apache2 restart"
    config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    config.vm.provision :shell, :inline => "apt-get install -q -y php5-cli php5-curl"
  4. travm renamed this gist Feb 3, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. travm renamed this gist Feb 3, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. travm revised this gist Oct 13, 2014. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -18,11 +18,12 @@ Vagrant.configure("2") do |config|

    # Setup
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    config.vm.provision :shell, :inline => "apt-get install -q -y cowsay python-software-properties python g++ make git curl apache2 php5 libapache2-mod-php5"
    config.vm.provision :shell, :inline => "apt-get install -q -y cowsay python-software-properties python g++ make git curl apache2 libapache2-mod-php5"
    config.vm.provision :shell, :inline => "sed -i '/AllowOverride None/c AllowOverride All' /etc/apache2/sites-available/default"
    config.vm.provision :shell, :inline => "sudo a2enmod rewrite"
    config.vm.provision :shell, :inline => "service apache2 restart"
    #config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    #config.vm.provision :shell, :inline => "apt-get install -q -y php5-cli php5-curl"
    config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    config.vm.provision :shell, :inline => "apt-get install -q -y php5-cli php5-curl"
    config.vm.provision :shell, :inline => "curl -s https://getcomposer.org/installer | php"
    config.vm.provision :shell, :inline => "mv ./composer.phar /usr/local/bin/composer"

  7. travm created this gist Oct 13, 2014.
    36 changes: 36 additions & 0 deletions Vagrantfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    # -*- mode: ruby -*-
    # vi: set ft=ruby :

    Vagrant.configure("2") do |config|

    # Box
    config.vm.box = "precise64"
    config.vm.box_url = "http://files.vagrantup.com/precise64.box"

    # Forwarded Ports
    config.vm.network :forwarded_port, guest: 80, host: 4567

    # Shared folders
    config.vm.synced_folder "./", "/vagrant",
    owner: "vagrant",
    group: "www-data",
    mount_options: ["dmode=775,fmode=664"]

    # Setup
    config.vm.provision :shell, :inline => "apt-get update --fix-missing"
    config.vm.provision :shell, :inline => "apt-get install -q -y cowsay python-software-properties python g++ make git curl apache2 php5 libapache2-mod-php5"
    config.vm.provision :shell, :inline => "sudo a2enmod rewrite"
    config.vm.provision :shell, :inline => "service apache2 restart"
    #config.vm.provision :shell, :inline => "add-apt-repository ppa:ondrej/php5 && apt-get update"
    #config.vm.provision :shell, :inline => "apt-get install -q -y php5-cli php5-curl"
    config.vm.provision :shell, :inline => "curl -s https://getcomposer.org/installer | php"
    config.vm.provision :shell, :inline => "mv ./composer.phar /usr/local/bin/composer"

    # Change Apache Working Directory
    config.vm.provision :shell, :inline => "rm -rf /var/www"
    config.vm.provision :shell, :inline => "ln -fs /vagrant /var/www"

    # Done
    config.vm.provision :shell, :inline => "cowsay \"Your development environment is ready!\""

    end