These are the steps for a minimal development box for Metrologos.
I'm going to use a virtual machine with VirtualBox using Vagrant, so you must install them beforehand. Also, it will need the hashicorp/precise32 box (will be downloaded if not present), if you want to use other debian-compatible, change the Vagranfile according.
As we are going to install ubuntu packages, you'll need some kind of internet access (if a 33.6 Kbps dial-up it's OK for you, it's OK for me)
1.- Clone Metrologos (or your fork)
git clone [email protected]:beco/MetroLogos.git
2.- Create a Vagrant machine into your repository folder
cd MetroLogos
vagrant init
3.- Download the files to boot-up your Vagrant Machine
wget -O Vagrantfile https://gist.githubusercontent.com/esparta/99a3857d9cc7a42692cc/raw/Vagrantfile
wget -O bootstrap.sh https://gist.githubusercontent.com/esparta/99a3857d9cc7a42692cc/raw/bootstrap.sh
4.- Start your Vagrant machine
vagrant up
All the above steps will do the following:
- Create a new virtual machine in VirtualBox
- Mount a directory en the VM called
/metrologos
, poiting to the local./src
directory - Update the VM's repositories (based on Ubuntu 12.04) via
apt-get update
- Install the minimal packages for a working MetroLogos (checkout in bootstrap.sh):
- Install nginx-light (the reduced version of nginx)
- Download a minimal nginx configuration file (I'm lazy, sorry)
- Install php5-fpm & php5-gd
- Do "port forwarding" to the VM's web application.
From now on you can browse the MetroLogos application on your development box: http://localhost:8080
Any changes you do in the development directory (./src/*
) will be available on the VM.