loganyott/vagrant
最新稳定版本:0.3.2
Composer 安装命令:
composer require loganyott/vagrant
包简介
README 文档
README
This is a composer package for pulling in a default Vagrant configuration. Upon installation, it will copy a Vagrantfile to your project's root so you can change specific configuration.
Getting Started
composer require "loganyott/vagrant"cp ./vendor/loganyott/vagrant/vagrant.yml ./vagrant.yml- Modify
vagrant.ymlas needed vagrant up
Working with Vagrant
To connect to your vagrant box, vagrant ssh.
Any configuration changes made inside the box will persist until a vagrant provision or vagrant destroy.
Defaults
Following is a list of default configuration values followed by steps to change them.
Structure
Vendor directory
vendor
-
Add this to your
composer.json{ "config": { "vendor-dir": "DESIRED_VENDOR_DIR" } }
### webroot
`/srv/www/`
1. Currently not configurable outside of `vendor`
## Nginx
### Host
`site.local`
1. Open `vagrant.yml`
2. Change
```yaml
:hostname: DESIRED_HOSTNAME
```
### Nginx port
`8080`
1. Open `vagrant.yml`
2. Change
```yaml
:network:
:forwarded_port:
:host: YOUR_DESIRED_PORT
```
*Note: Vagrant will try to correct port collisions automatically. Look for a line such as `==> default: Fixed port collision for 80 => 8080. Now on port 2200.` during a `vagrant up`. In this example, I can access my local through `localhost:2200`.*
## mySQL
### user
`root`
1. Currently not congiurable outside of `vendor`
### password
`root`
1. Currently not congiurable outside of `vendor`
### database
`project`
1. Currently not congiurable outside of `vendor`
### port
`3306`
1. Currently not congiurable outside of `vendor`
统计信息
- 总下载量: 1.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-05-19