How to install nginx 1.0 on Debian Squeeze

Posted abril 2nd, 2012 in Blog, Web Development by Gastón Acosta Ramas

hi,

here i will show you how i’ve installed NginX 1.0 on Debian Squeeze Server, drectly from Nginx repos.

 

first of all, add these lines to /etc/apt/sources.list

then add the PGP signature to apt.

now, you can install NginX 1.0 by doing apt-get install nginx.

good luck!

WebDevelopment using vagrant

Posted marzo 21st, 2012 in Blog, Web Development by Gastón Acosta Ramas

if you’re working on various web projects, and some of them are based in different technologies, and/or using different frameworks, it’s difficult to have one development environment, and keep it tidy, clean and working.

In my case, i’ve some projects under NginX others under Apache2, others in different architectures, and i’ve to test some projects in different SO.

well, here i’ll show you how i used vagrant as a solution for this problem.

vagrant uses VirtualBox headless to provide you, an easy to use/handle VM.

 

  1. download vagrant from here.
  2. add your boxes (base vms.) by default you can download ubuntu base box, but here, you have a list of Vagrant boxes you can add.
  3. usefull commands you should know.

in my case i have /home/gargrag/projects/, and inside one folder per project with a vagrant box .

editing Vagrantfile you could  forward ports to your phisical vm, add shared folders and setup many other things like chef provisioning.

for example you can forward 3306 to 3306, 80 to 8080 and whatever you need.

 

happy develop!.