My Local Development Setup Part II: The Software

Filed under: technology, web development

comments (0) Views: 4,435

If you recall, I wrote about the hardware I use in my personal development environment. That was just part one of the article though and I'm finally here to finish the job I started way back in January.

One of the primary reasons why I purchased the Mini was for use as a file server. It sat on my desk for about 6 months serving that exact purpose. When I purchased my new Dell, I was determined that I not waste CPU and RAM on that machine for apps which merely ran in the background. Apps like ColdFusion, Apache, MySQL, etc. It was then that I realized with a little research, and some legwork, I could use the Mini as a web server as well. So I downloaded and installed Adobe ColdFusion Developer Edition (my programming language of choice), and MAMP Basic (an all in one package for the Mac which provides a single click install for all of the provided software). So now that the Mini has this software running on it, how do I get my PC to see it? It was fairly straightforward, here's the steps I took.

  1. On the Mini I decided to put all of my sites in the default user folder "Sites". Makes sense, no?
  2. Also on the Mini I created a vhost entry for my sites directory, like so:
     
     
    <VirtualHost *:80>
    ServerName local
    DocumentRoot /Users/andymatthews/Sites
    </VirtualHost>
     
    

This allows me, from the PC, to hit http://local and have it bring up my top level web root. I find that this makes it easier for me to get to sites quickly. For sites that are a little more robust, or sites that need special root level mappings I take it a step further and add a custom vhost on a site by site basis. That vhost looks like this:

 
 
<VirtualHost *:80>
ServerName local.andymatthews.net
DocumentRoot /Users/andymatthews/Sites/personal/andymatthews.net
</VirtualHost>
 

The benefits of this approach are that I can use root level mappings for sites, referencing images, css, scripts, etc. as /.

Finally, I have the hosts file on my PC configured like so:


# Personal development
192.168.1.9       local
192.168.1.9       local.commadelimited.com
192.168.1.9       local.andymatthews.net

That's pretty much the setup. Shameful that it took me this write the second part of a 2 part series. If you've got questions, or suggestions please make sure to post them in the comments.

Amazon logo

If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!

comments powered by Disqus
coach outlet online jordan 13 grey toe beats by dre cyber monday michael kors black friday beats by dre cyber monday jordan 6 black infrared north face cyber monday michael kors cyber monday north face black friday coach outlet black infrared 23 13s north face cyber monday jordan 6 black infrared north face black friday coach cyber monday jordan 11 legend blue north face cyber monday black infrared 6s lebron 12 north face black friday jordan 11 legend blue louis vuitton outlet jordan 13 grey toe grey toe 13s beats by dre black friday coach black friday jordan 13 grey toe coach cyber monday uggs black friday jordan 13 black infrared 23 uggs cyber monday barons 13s uggs black friday beats by dre cyber monday black infrared 6s jordan 13 bred jordan 13 black infrared 23 north face black friday black infrared 6s jordan 11 legend blue michael kors black friday jordan 13 grey toe coach black friday michael kors black friday michael kors cyber monday beats by dre cyber Monday north face cyber monday coach black friday michael kors cyber monday beats by dre cyber Monday north face black friday beats by dre black friday lululemon black friday uggs black friday jordan 13 bred coach cyber monday beats by dre black friday uggs black friday coach black friday black infrared 6s