Thanks to visit codestin.com
Credit goes to github.com

Skip to content

infabinho/zend-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zend Vagrant Template

This project provides a very slim Zend edition with a vagrant/puppet support. It can be used as template for new projects.

Setup

  • Install vagrant on your system see vagrantup.com

  • Get a base box with puppet support see vagrantup.com docs

  • Install composer on your system see getcomposer.org

  • Create a new project from this template:

        composer create-project tonicospinelli/zend-vagrant <project-path> --stability="dev"
  • Remember to include the host and ip in file hosts:

        sudo sh -c 'echo "192.168.10.42 test.dev" >> /etc/hosts'
  • In your project directory:

    • Copy vagrant/BoxConfigurations.dist to vagrant/BoxConfigurations and modify vagrant/BoxConfigurations according to your needs.

      Example:

          $vhost = "test"
          $ip = "192.168.10.42"
      
          $use_nfs = true
      
          $base_box = "ubuntu-server-i386"
      
          $webserver = "nginx"
    • Execute "vagrant up" in the directory vagrant.

Infrastructure

After performing the steps listed above, you will have the following environment set up:

  • A running virtual machine with your project on it
  • Your project directory will be mounted as a shared folder in this virtual machine
  • Your project will be accessible via a browser (go to http://{$vhost}.dev/[index.php])
  • You can now start customizing the new virtual machine. In most cases, the machine should correspond to the infrastructure your production server(s) provide.

About

Vagrant box for PHP Projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors