enkas/vagrant
最新稳定版本:0.4.0
Composer 安装命令:
composer require enkas/vagrant
包简介
Shell scripts to install and configure Cent OS 6 trough Vagrant Up
README 文档
README
Documentation
If you're just getting started with Vagrant, it is highly recommended you start with the getting started guide.
Config Local Machine (Unix)
Step1: Add the fallowing host line to /etc/hosts
sudo nano /etc/hosts
127.0.0.1 vagrant.lo web.lo 192.168.33.22 www.vagrant.lo www.web.lo
Step2: Install via Composer
- Create your New Web App project folder
$ cd ~ $ mkdir new_project $ cd ./new_project
- run
composer require enkas/vagrant:dev-master
or add to your composer.json
{
"require" : {
"enkas/vagrant": "dev-master"
}
}
- and run
composer update
Step3: Vagrant Up
Step3.1: Optional overwrite vagrant constants
you may copy, the ./vendor/enkas/vagrant/_conf/my_conf.rb to ./my_conf.rb and change change your environmental constants as you want
cp ./vendor/enkas/vagrant/_conf/my_conf.rb ./my_conf.rb
Step3.2: Create web folder
create folder ./www_web this folder may host your application and can be accessed later on at www.web.lo
Step3.3: Vagrant Up
cd ./vendor/enkas/vagrant
vagrant up
Step4: Access the project
Access from local machine the address:
or using port forwarding
To connect to your vagrant server
vagrant ssh
统计信息
- 总下载量: 3.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-23