Do you use nginx on localhost for drupal development?

Events happening in the community are now at Drupal community events on www.drupal.org.
dipen chaudhary's picture
Yes
55% (26 votes)
No
45% (21 votes)
Total votes: 47

Comments

Personally, I have many VM

omega8cc's picture

Personally, I have many VM available online, so I'm not using it locally on my Mac (maybe I will start using it locally after I will switch to Jolicloud or Aurora on my netbook), and furthermore, all known "turnkey" environments for local development on Windows and Mac are just LAMP based stacks. So it is nice people are using Nginx locally, even if it is not available out-of-the-box (unless you are using Barracuda and Octopus to create local environment, of course). I hope one day we will have LXMP with Aegir ready to boot/run directly from your USB stick.

Thanks for adding the

dipen chaudhary's picture

Thanks for adding the comment, I was hoping to open a new discussion after getting some votes but now it can be done here :). Can you briefly explain your dev setup using VM's? though I don't think it will ever be smooth for me due to internet bandwidth issues in the country I live :) I have been thinking of using nginx on all sites in production and then after looking at config options for drupal, I soon realized that it might lead to many hours of frustrating hair pulling during deployment if I use apache for dev and nginx for production. So I really want to have consistent dev and production/X environments.

As I understand Octopus and Barracuda are not optimal to set up local machines? It needs a fresh linux boot on the cloud or VPS where even apt-get update has not been run, this is often not the case for development machines/laptops people use. Would it be possible to use barracuda on an ongoing development machine? (which in most cases is not a fresh install). I have been following barracuda and octopus thread but have been reluctant to give it a go on my linux laptop due to warnings abt freshness. Is my presumption wrong?

I am sold on using nginx, now I am trying to find out whats the best way to set up nginx locally for myself and my team and having a consistent and smooth development experience. Any pointers? Thanks a lot for the work you have done in this space :)


Dipen Chaudhary
Founder, QED42 http://www.qed42.com Drupal development

For development I'm using

omega8cc's picture

For development I'm using VServer based VM instances with basic Debian install on the dedicated box.

Those warnings/requirements about vanilla system for Barracuda and Octopus are more to avoid disasters for less experienced users. It is not that invasive and should work just fine on any Debian/Ubuntu laptop/netbook, even installed directly on the system and not as a VM. Well, I will try that on my Jolicloud powered netbook.

Of course if you are using already some LAMP stack, you need to turn it off before trying Barracuda, but later you can use both (turning on/off one of them).

The main detail you should remember about is to archive your /etc/apt/sources.list file, if it is using any sources not listed in Barracuda install, since Barracuda overwrites it without creating any backup copy (it should probably).

The recommended way is however to use VirtualBox to create isolated environment if you didn't install Barracuda/Octopus at least 10 times before.

I will post my results with Jolicloud :)

Well

perusio's picture

on one hand I understand the fact that most distros and turnkey solutions for webdev environments out there don't include nginx. But on the other hand if you're going to deploy using nginx, isn't it a bit "strange" and an error prone approach to have different servers in your dev environment and staging/production?

I agree, it would be probably

omega8cc's picture

I agree, it would be probably a bad idea to develop on Apache while using Nginx on the server. Personally I develop only on servers, not locally, so I always use Nginx. I even never tried to install Aegir with Apache. Even my very first attempt to use/install Aegir was on my server running Nginx.

Barracuda and Octopus are now

omega8cc's picture

Barracuda and Octopus are now fully compatible with Jolicloud/Robby (which is based on Ubuntu Jaunty). I'm using it on my Asus Eee PC 1215n without any virtualization. I simply created a few partitions and installed Jolicloud on 2 of them to avoid issues, but there was none. It works as expected. I used new configuration options: _LOCAL_NETWORK_IP and _LOCAL_NETWORK_HN. This also means it should work with any Debian/Ubuntu based desktop/notebook, installed on a live system, not in a VM. Of course, don't even think about it, if you don't have full backups ;)

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: