Skip to content

kmarenov/yii2-vagrant

Repository files navigation

This repository contains complete vagrant configuration for Yii2 advanced application. Configuration based on configs from trntv/yii2-starter-kit.

Installation

  1. Install Virtualbox and Vagrant
  2. Copy all files from repository except .gitignore and README.md to your project root directory.
  3. Create GitHub personal API token and add it in vagrant.yaml
  4. 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 https://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/

About

Vagrant configuration for Yii2 based projects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages