This repository contains complete vagrant configuration for Yii2 advanced application. Configuration based on configs from trntv/yii2-starter-kit.
- Install Virtualbox and Vagrant
- Copy all files from repository except .gitignore and README.md to your project root directory.
- Create GitHub personal API token and add it in
vagrant.yaml
- Run in your project root:
vagrant plugin install vagrant-hostmanager
vagrant plugin install vagrant-vbguest
vagrant up
That`s all. After provision application will be accessible on http://yii2.dev
Web server configured with three different web roots:
- yii2.dev => /path/to/app/frontend/web
- backend.yii2.dev => /path/to/app/backend/web
- storage.yii2.dev => /path/to/app/storage/web
You also can add vagrant files to .gitignore:
vagrant.sh
vagrant.yaml
Vagrantfile
vhost.conf
.vagrant/