This post is mostly a re-post of one from my personal blog a few months ago, with a few minor changes. I have been asked about how I have my development environment set up a few times recently, so I figured this would be good to re-post.
Disclaimer: This is my preference and is not mandated by Alagad, though I think we all follow similar guidelines
I use Apache for my development web server, and for each project, I
set up a new ‘virtual host’ so that each project can run from its own
web root. I do this so that each development site runs from its own web root, just like production will. I give each project a ‘serverName’ like projectName.dev. This just helps me be aware of whether I am on dev or production, and makes it so I have to type less.
Then I set up a new entry in my HOSTS file for projectName.dev and point it to 127.0.0.1.
To make editing httpd.conf and HOSTS easier, I set up a project in Eclipse that points to my {apache root}/conf folder. Inside of that project, I create a linked file to my HOSTS file. Now from within Eclipse, I can edit my httpd.conf file and my HOSTS file.
I typically will structure my project so that I have a structure that looks similar to:
{projectRoot} {projectRoot}/flex-src - if its a Flex project {projectRoot}/support - this is where I put project documents, associated files, artwork, etc {projectRoot}/wwwapp - this is the application root for my project. Typically this is where framework code, model code,etc will go {projectRoot}/wwwapp/www - this is the web root for my project and where I would point Apache and contains all files that will be needed from any page such as JS, CSS, etc.
Obviously, as the project dictates, I will add other sub-directories. Also, when using SVN, {projectRoot} will typically be the ‘trunk’ of the repo.
Comments on: "How I Set Up My Development Environment" (10)
I do the same thing.
I setup a local CF8 developer edition with same setup with Apache. I also commit everything to SVN repo.
I have my whole team setup this exact same way – it’s really a smart way to do it.
LikeLike
Love the idea of having an Eclipse project pointing to the hosts file and httpd.conf. thanks!
LikeLike
I use a similar setup but hadn’t thought of the linked file to the hosts file either. nice one!
LikeLike
Can I chip in a couple of ideas?
Take a look at VirtualDocumentRoot for Apache 2.x
That way you can have a single VirtualHost definition that you don’t need to add to whenever you add a new local dev domain to your HOSTS file.
Also I float out all my changes to the standard httpd.conf into a separate file that I then Include into the end of the Apache httpd.conf file. That way I never lose my special config should I need to reinstall Apache or when I bring a new dev box online.
LikeLike
http://concealer.mybrute.com
Check out this cool mini fighting game
LikeLike
Miley Cyrus Nude Miley Cyrus Nude Miley Cyrus Miley Cyrus keira knightley nude keira knightley nude kim kardashian sex tape kim kardashian sex tape Miley Cyrus Nude Miley Cyrus Nude miley cyrus sex miley cyrus sex Miley Cyrus Nude Miley Cyrus Nude Miley Cyrus Sex Tape Miley Cyrus Sex Tape Kim Kardashian sex tape Kim Kardashian sex tape
LikeLike
Hey Pal,
Good site. Some interesting and knowlegeable posts man 🙂 I know, I am creeping,lol. Hopefully I can produce something like this myself. Where did you get your templates from?
Hopefully one of you kind souls could help me out somewhat here. I am looking for someone who I was reliably told used to be a member with this site. They used to use the name ‘wizardwebone’.
You see I am trying to start my own site on cosmetics type goods for things such as: home tooth whitening (hence the where did you get your templates from,lol) but am having realllll difficulty getting hold of dropshippers for these goods. I had been in touch with this guy but my PC got stolen and unfortunately had all my contact details on it (I know, I know, should have backed it up 😦 )
So if you folks have heard or seen anything of this guy could you send me a message please? Failing that maybe one of you guys knows someone?
And, which hosting do you use as I keep being told not so good tales about the host I am considering of hosting my site with. And any other useful tips you can give re starting up my website would be most useful and gratefully appreciated.
I hope that one of you has useful knowledge on this
Thanks Bro,
LikeLike
Hello just thought i would tell you something.. This is twice now i’ve landed on your blog in the last 3 days hunting for completely unrelated things. Spooky or what? If you liketo swap the links with us please let me know.
LikeLike
really great sites, thank you, http://replicarolexwatches.yolasite.com replica rolex watches, 223,
LikeLike
The article is wonderful, blogger ideas I like it very much.worship.
LikeLike