phpughh / dev-env

1 stars 1 forks source link

dev-env (virtual box + vagrant)

Software to download:

Windows:

Linux:
Read the installation guide http://docs.vagrantup.com/v2/installation/ or search via Google how to install vagrant on your distribution.

Workspace & Repositories

Start the VM:

In general we assume that every developer has an 64Bit system. If you don't just change the configuration values of the following parameters:

config.vm.box = "" // precise64 or precise32
config.vm.box_url = "" // http://files.vagrantup.com/precise64.box or http://files.vagrantup.com/precise32.box

Open a console and change over to the checkout "dev-env". Start the VM by running the command:

vagrant up

Long story short or what happens after executing "vagrant up".

The first time you start building the machine vagrant will start downloading the vagrant box (precise64) which is ~330MB. So please make sure you have a well internet connection. Afterward ruby (v1.9.1) and it dependencies will be installed, followed by Jekyll.

Connect the VM:

Windows:
Configure a SSH connection in Putty:

Start the Jekyll:

Execute the following command:

sudo LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 jekyll serve --port 80 --watch --detach --source /var/www/phpughh.github.com

The page is now be available in your browser under "127.0.0.1:8080".

Useful Commands

vagrant destroy // destroy the vm
vagrant reload  // restart the vm
jekyll --help

Notice

There should be no problems with the current version of VirtualBox and Vagrant, in case of use this versions instead.

Status: not well tested

Cookbooks

Links