enkas / vagrant
Shell scripts to install and configure Cent OS 6 trough Vagrant Up
0.4.0
2015-07-08 14:33 UTC
Requires
- enkas/bash-tasks: @dev
This package is not auto-updated.
Last update: 2024-11-09 18:05:58 UTC
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