Re: Local DEV setup, multiple projects/websites
On Wed, Mar 3, 2010 at 1:14 PM, Dave Watts dwa...@figleaf.com wrote: Yes. In any case, you shouldn't be using Windows Server 2000 for production, and therefore you shouldn't be using XP for development of IIS-specific functionality within web sites. If you don't need IIS-specific functionality and want to continue using XP, you should use Apache. If you do need IIS-specific functionality, you should ideally use the same server platform for development as you'll use in production - VMware and VirtualPC make this very easy, of course. Yeah, that's why I said earlier that we use Apache on our development machines. We do have a few IIS-specific things on some of our sites (mainly ISAPI rewrite, which seems to be a bit different from mod-rewrite). -- - Scott Brady http://www.scottbrady.net/ ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331376 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Local DEV setup, multiple projects/websites
Yes, we looked at this. I don't know if it's still true, but only one IIS site can run at a time, which doesn't work for us. It doesn't let you use multiple IIS sites -- it basically changes what the IIS site is. Scott On Tue, Mar 2, 2010 at 8:38 AM, wrote: Scot, You can still use XP (and Win 2000 standard) and IIS and have multiple sites if you install a very useful utility XP Pro IIS Admin by JetStat.com You can add in XP IIS many sites and through the utility to acticate the site you want work on. I use it long time and it's just fine. No problem at all. Anastassios ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331308 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Local DEV setup, multiple projects/websites
Yes, we looked at this. I don't know if it's still true, but only one IIS site can run at a time, which doesn't work for us. It doesn't let you use multiple IIS sites -- it basically changes what the IIS site is. Yes. In any case, you shouldn't be using Windows Server 2000 for production, and therefore you shouldn't be using XP for development of IIS-specific functionality within web sites. If you don't need IIS-specific functionality and want to continue using XP, you should use Apache. If you do need IIS-specific functionality, you should ideally use the same server platform for development as you'll use in production - VMware and VirtualPC make this very easy, of course. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331327 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Local DEV setup, multiple projects/websites
On Monday 01 Mar 2010, Cameron Childress wrote: end up with a buncha hosts file entries everyone on the team has to manage. For me, it's much less work. YMMV. Well, of course, but I don't understand how differing live and development environments is ever a good thing. -- Helping to collaboratively iterate out-of-the-box compelling high-end ubiquitous deliverables as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331246 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
Well, of course, but I don't understand how differing live and development environments is ever a good thing. In an Ideal situation this holds true, especially if you are a lone developer or are stuck a single platform. Many people work in team environments so having the flexibility to have different configurations available is a good thing, even if it is not needed right away. I work with several servers on many projects, some Windows, some Linux Red Hat, some Ubuntu. Also our team members are all working on different platforms, XP, OS-10, Snow Leopard, Ubuntu-- I like to use the best of each OS, and I never want to be stuck on 1 platform or vendor. The team all have access to several types of repo's, GIT, SVN etc.. depending on when/where the app was developed. We also stage server upgrades in distributed VM's and move them up the food chain as newer systems are released. So having configuration data set up in a way that it CAN be different on live and development is very important. We can go from development, staging then live with very little configuration changes. The config files can be generated using ANT, so a config file can exist for every possible situation from the beginning of a project. If an app needs to move from Red Hat/Apache 1.x to WIN SERV on IIS it wont need anything fancy to do it. (usually) Did I mention how much I love code generation? -- /Kevin Pepperman ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331247 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
On Tue, Mar 2, 2010 at 4:23 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: Well, of course, but I don't understand how differing live and development environments is ever a good thing. As Kevin pointed out, different people have development environments. Some in a very isolated corporate environment may work on one (and one only) application for years, perhaps even a decade. Others are consultants who might work on 3 or 4 different client projects in a single day, hosted in 4 different ways on 4 different platforms. Like many things in technology, the important thing is matching your solution to your problem. Not declaring one right solution barring all others. Personally, I find that making all HTTP requests relative and making all CF code use self discovering mappings (Application.cfc) gives me the most flexibility with minimal configuration. Your work environment may be entirely different, and your development environment may very well be a mirror image of production. Mine isn't. Ever. -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331248 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
IIS on XP (and I believe Vista and Win7 that aren't server versions) doesn't allow multiple sites. It only allows for 1 site. That's why our development team runs apache locally. It's not ideal, since our production environments are IIS, but other than mod-rewrite/ISAPI rewrite and slightly different Active Directory authentication, it works for us. Scott On Thu, Feb 25, 2010 at 7:52 PM, Charlie Griefer charlie.grie...@gmail.com wrote: I believe that nowadays IIS does the multiple sites thing. If that's the case, you should still be able to set up the foo.dev and bar.dev sites in IIS, which gives you the equivalent of top level domains, even though they're subdirectories within your webroot. -- - Scott Brady http://www.scottbrady.net ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331250 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Local DEV setup, multiple projects/websites
Scot, You can still use XP (and Win 2000 standard) and IIS and have multiple sites if you install a very useful utility XP Pro IIS Admin by JetStat.com You can add in XP IIS many sites and through the utility to acticate the site you want work on. I use it long time and it's just fine. No problem at all. Anastassios -Original Message- From: Scott Brady [mailto:dsbr...@gmail.com] Sent: Tuesday, March 02, 2010 5:30 PM To: cf-talk Subject: Re: Local DEV setup, multiple projects/websites IIS on XP (and I believe Vista and Win7 that aren't server versions) doesn't allow multiple sites. It only allows for 1 site. That's why our development team runs apache locally. It's not ideal, since our production environments are IIS, but other than mod-rewrite/ISAPI rewrite and slightly different Active Directory authentication, it works for us. Scott On Thu, Feb 25, 2010 at 7:52 PM, Charlie Griefer charlie.grie...@gmail.com wrote: I believe that nowadays IIS does the multiple sites thing. If that's the case, you should still be able to set up the foo.dev and bar.dev sites in IIS, which gives you the equivalent of top level domains, even though they're subdirectories within your webroot. -- - Scott Brady http://www.scottbrady.net ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331252 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
IIS on Vista and Windows 7 does allow for multiple sites. Just saying. Vista runs IIS7. not sure what Win7 runs, I'm not on a Windows 7 machine here. On Tue, Mar 2, 2010 at 10:29 AM, Scott Brady dsbr...@gmail.com wrote: IIS on XP (and I believe Vista and Win7 that aren't server versions) doesn't allow multiple sites. It only allows for 1 site. That's why our development team runs apache locally. It's not ideal, since our production environments are IIS, but other than mod-rewrite/ISAPI rewrite and slightly different Active Directory authentication, it works for us. Scott ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331253 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
IIS on XP (and I believe Vista and Win7 that aren't server versions) doesn't allow multiple sites. It only allows for 1 site. That's why our development team runs apache locally. That is what got me using Apache locally. After a while I actually started to prefer Apache over IIS. I have several installs of XAMPP for projects with different requirements. I have a rig for Adobe CF and one for Railo and another for OBD. Actually, in the past I used include files in the httpd.conf for switching between different CF engines. I was able to swap out CF engines by commenting/uncommenting the include files and restarting Apache. XP Pro IIS Admin by JetStat.com I tried that one and it works well. The main problem with that is that you can only run one site at a time. G! On Tue, Mar 2, 2010 at 10:29 AM, Scott Brady dsbr...@gmail.com wrote: IIS on XP (and I believe Vista and Win7 that aren't server versions) doesn't allow multiple sites. It only allows for 1 site. That's why our development team runs apache locally. It's not ideal, since our production environments are IIS, but other than mod-rewrite/ISAPI rewrite and slightly different Active Directory authentication, it works for us. Scott On Thu, Feb 25, 2010 at 7:52 PM, Charlie Griefer charlie.grie...@gmail.com wrote: I believe that nowadays IIS does the multiple sites thing. If that's the case, you should still be able to set up the foo.dev and bar.dev sites in IIS, which gives you the equivalent of top level domains, even though they're subdirectories within your webroot. -- - Scott Brady http://www.scottbrady.net ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331255 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Local DEV setup, multiple projects/websites
I believe it is IIS7...I don't think there was a new IIS release with 7. I remember reading an article written by the guy in charge of the division that integrates IIS with Windows. Apparently after IIS 5.1 (the crippled XP Pro version), they got beat up so bad by developers, he said he was NEVER going to make that mistake again and that when they were releasing Vista (obviously, this was written pre-Vista) that IIS was going to be a full version in Pro and Ultimate. The software from JetSet works, but it is still a complete PIA because you have to go in and shut down one site to start the new one (via the JetrSet software). Better than nothing I suppose ;-) I just used apache on XP instead of IIS, but then I wasn't doing anything that was web server specific. Eric -Original Message- From: Sandra Clark [mailto:sclarkli...@gmail.com] Sent: Tuesday, March 02, 2010 9:42 AM To: cf-talk Subject: Re: Local DEV setup, multiple projects/websites IIS on Vista and Windows 7 does allow for multiple sites. Just saying. Vista runs IIS7. not sure what Win7 runs, I'm not on a Windows 7 machine here. On Tue, Mar 2, 2010 at 10:29 AM, Scott Brady dsbr...@gmail.com wrote: IIS on XP (and I believe Vista and Win7 that aren't server versions) doesn't allow multiple sites. It only allows for 1 site. That's why our development team runs apache locally. It's not ideal, since our production environments are IIS, but other than mod-rewrite/ISAPI rewrite and slightly different Active Directory authentication, it works for us. Scott ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331256 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Local DEV setup, multiple projects/websites
On Tue, Mar 2, 2010 at 3:09 AM, Kevin Pepperman wrote: ... The config files can be generated using ANT, so a config file can exist for every possible situation from the beginning of a project. Ant ROCKS! I used to want to mirror the environments too, going so far as making VM images and whatnot (pretty cool). Now I use a set of Ant scripts (cfdistro) for doing various kinds of WAR builds and deployments. Each project has it's own settings, and can be deployed in all manner of ways (even a single executable jar file, that just expands the embedded war to the temp directory). Theoretically, across a variety of CFML engines, too (I only really test on Railo, but there's some stuff for ACF already, and OBD is on the way). CFDistro is already in the wild, but I'm not being loud about it until it's a little more user friendly. It's a great resource for doing just about everything you can do with Ant, tho. :) When I'm ready to have some brave souls test it out I'll make some noise, but feel free to hit me up if you're wondering how to do something like this using Ant. :den -- Attempt easy tasks as if they were difficult, and difficult as if they were easy; in the one case that confidence may not fall asleep, in the other that it may not be dismayed. Baltasar Gracian ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331267 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Local DEV setup, multiple projects/websites
On Friday 26 Feb 2010, Cameron Childress wrote: On Thu, Feb 25, 2010 at 9:05 PM, Jeff U j...@uspokerdirectory.com wrote: I'm hoping I can create all links RELATIVE and that way they work both locally as well as on production with no code changes what-so-ever. By far, the easiest solution is to make your links relative to the current page/directory rather than the root. Instead of this: Well, maybe, but you are incurring a lot of work. It's better to just use name based virtual hosts in your web server as others have suggested - as a bonus your dev. environment will more closely match live, which leads to less surprise at deploy time :-) -- Helping to adaptively participate end-to-end sticky 24/365 services as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word partner to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331205 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Local DEV setup, multiple projects/websites
On Mon, Mar 1, 2010 at 10:05 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Friday 26 Feb 2010, Cameron Childress wrote: By far, the easiest solution is to make your links relative to the current page/directory rather than the root. Instead of this: Well, maybe, but you are incurring a lot of work. That extra ../ I have to type now and then is offset by the leading / that I never have to type. Seriously though - it's not more work one way or the other, unless you are changing a huge complex app to conform to a different link standard, which I would not recommend. Alot of framework based applications use a front controller that can easily (and quickly) be modified to be relative (or not). It's better to just use name based virtual hosts in your web server as others have suggested - as a bonus your dev. environment will more closely match live, which leads to less surprise at deploy time :-) Eh - I'd say what's better is what matches your development standard. What's better for you may not be better for me, vice-versa. I've found relative links give me a great deal of flexibility and I don't end up with a buncha hosts file entries everyone on the team has to manage. For me, it's much less work. YMMV. -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com .. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331211 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
I just setup my hosts file to direct me: 1.) C:\Windows\System32\drivers\etc\hosts\ (In Vista. Not sure about win7) write the following: 127.0.0.1/devprojectA/ [tab] dev.projectA.com Also, if you are going to push to a windows server with IIS, I suggest you use the IIS web server instead of the built in version locally so you can mimic the same mapping as you would use in production. This is strictly a preference. There isn't anything wrong with your current setup at all. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331188 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Local DEV setup, multiple projects/websites
Yeah, what Charlie said. It is very easy to set up local sub domains with Apache. VirtualHost * ServerName site1.localhost DocumentRoot C:/xampp/htdocs/site1 /VirtualHost VirtualHost * ServerName site2.localhost DocumentRoot C:/xampp/htdocs/site2 /VirtualHost I find that it cuts down on a lot of chores like having to dynamically create urls and paths to cfcs. And Scott Stroz set up is great idea. As Forest Gump would say: One less thing. G! On Thu, Feb 25, 2010 at 9:52 PM, Charlie Griefer charlie.grie...@gmail.comwrote: While I do advocate keeping your development setup as close to the production setup as possible, I've always used Apache locally, even if I was using IIS remotely. Made it easier to do things like multiple sites and setting up the .dev sites as outlined above and in the blog entry i linked above. I believe that nowadays IIS does the multiple sites thing. If that's the case, you should still be able to set up the foo.dev and bar.dev sites in IIS, which gives you the equivalent of top level domains, even though they're subdirectories within your webroot. On Thu, Feb 25, 2010 at 6:34 PM, Jeff U j...@uspokerdirectory.com wrote: Definitely should have included that. WinXP, IIS, CF9 Development Server, used built-in webserver. Prefer to keep it that way for simplicity sake. Thanks guys. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331190 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Local DEV setup, multiple projects/websites
I do something similar but use the host headers in IIS. I think they call it host name in the latest IIS. So my Hosts files looks like: 127.0.0.1 foo 127.0.0.1 moo Then the host header in IIS is foo and moo for each site. So you type in http://foo/ the hosts file routes it to IIS and IIS then routes it to the proper web site. Works really well. -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: Friday, February 26, 2010 2:47 PM To: cf-talk Subject: Re: Local DEV setup, multiple projects/websites I just setup my hosts file to direct me: 1.) C:\Windows\System32\drivers\etc\hosts\ (In Vista. Not sure about win7) write the following: 127.0.0.1/devprojectA/ [tab] dev.projectA.com Also, if you are going to push to a windows server with IIS, I suggest you use the IIS web server instead of the built in version locally so you can mimic the same mapping as you would use in production. This is strictly a preference. There isn't anything wrong with your current setup at all. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331191 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
I just setup my hosts file to direct me: 1.) C:\Windows\System32\drivers\etc\hosts\ (In Vista. Not sure about win7) write the following: 127.0.0.1/devprojectA/ [tab] dev.projectA.com Also, if you are going to push to a windows server with IIS, I suggest you use the IIS web server instead of the built in version locally so you can mimic the same mapping as you would use in production. This is strictly a preference. There isn't anything wrong with your current setup at all. Well, this works, but I'm pretty sure it works by accident - to the best of my knowledge, all the HOSTS file resolves is IP addresses, not directory paths. This will route requests for dev.projectA.com to 127.0.0.1, where your web server can distinguish between them using host header mappings. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331194 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
On Thu, Feb 25, 2010 at 9:05 PM, Jeff U j...@uspokerdirectory.com wrote: I'm hoping I can create all links RELATIVE and that way they work both locally as well as on production with no code changes what-so-ever. By far, the easiest solution is to make your links relative to the current page/directory rather than the root. Instead of this: a href=/somepath/somefile.cfm do this: a href=somefile.cfm or this: a href=../../somefile.cfm This avoids having to know what the root root directory is entirely. This may not be practical in your case, but in most cases it works just fine. -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: camer...@gmail.com ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331195 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
What is your dev setup? ex. Win7 Pro, WinXP, Mac, Linux IIS, Apache, JRUN On Thu, Feb 25, 2010 at 7:05 PM, Jeff U j...@uspokerdirectory.com wrote: Hello, I've got a new local environment setup and I've got multiple projects in folders off the root. http://localhost:8500/projectAAA/index.cfm http://localhost:8500/projectBBB/index.cfm and so forth These projects then sit production wise on: www.projectAAA.com www.projectBBB.com (note: root level, not in a sub-folder like LOCAL) Is there anyway in my local environment that I can create something like: http://local.projectAAA.com/ hitting the content in the /projectAAA/ folder. I'm hoping I can create all links RELATIVE and that way they work both locally as well as on production with no code changes what-so-ever. I hope I explained that right. I believe my HOSTS file isn't the answer as that can't forward to ports. Suggestions?? only other idea I had was to make links look like: a href=#baseURL#link.cfmlink/a. where: cfif isLocalEnv cfset baseURL = /projectAAA/ cfelse cfset baseURL = / /cfif but that seems like a ugly code solution. Appreciate any help this list can provide! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331145 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
I do it like this guy does it: http://www.boyzoid.com/blog/index.cfm/2007/12/14/How-Do-You-Set-Up-Your-Development-Environment http://www.boyzoid.com/blog/index.cfm/2007/12/14/How-Do-You-Set-Up-Your-Development-EnvironmentBasically, set up a virtual host thru apache for each site, with a .dev naming convention. So if I have 2 sites that would be www.foo.com and www.bar.com in production, they're foo.dev and bar.dev locally. And yes, that would require entries into your hosts file for foo.dev and bar.dev :) On Thu, Feb 25, 2010 at 6:05 PM, Jeff U j...@uspokerdirectory.com wrote: Hello, I've got a new local environment setup and I've got multiple projects in folders off the root. http://localhost:8500/projectAAA/index.cfm http://localhost:8500/projectBBB/index.cfm and so forth These projects then sit production wise on: www.projectAAA.com www.projectBBB.com (note: root level, not in a sub-folder like LOCAL) Is there anyway in my local environment that I can create something like: http://local.projectAAA.com/ hitting the content in the /projectAAA/ folder. I'm hoping I can create all links RELATIVE and that way they work both locally as well as on production with no code changes what-so-ever. I hope I explained that right. I believe my HOSTS file isn't the answer as that can't forward to ports. Suggestions?? only other idea I had was to make links look like: a href=#baseURL#link.cfmlink/a. where: cfif isLocalEnv cfset baseURL = /projectAAA/ cfelse cfset baseURL = / /cfif but that seems like a ugly code solution. Appreciate any help this list can provide! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331146 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
Definitely should have included that. WinXP, IIS, CF9 Development Server, used built-in webserver. Prefer to keep it that way for simplicity sake. Thanks guys. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331147 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
While I do advocate keeping your development setup as close to the production setup as possible, I've always used Apache locally, even if I was using IIS remotely. Made it easier to do things like multiple sites and setting up the .dev sites as outlined above and in the blog entry i linked above. I believe that nowadays IIS does the multiple sites thing. If that's the case, you should still be able to set up the foo.dev and bar.dev sites in IIS, which gives you the equivalent of top level domains, even though they're subdirectories within your webroot. On Thu, Feb 25, 2010 at 6:34 PM, Jeff U j...@uspokerdirectory.com wrote: Definitely should have included that. WinXP, IIS, CF9 Development Server, used built-in webserver. Prefer to keep it that way for simplicity sake. Thanks guys. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331148 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Local DEV setup, multiple projects/websites
The big caveat here, for me, is that IIS7 and Apache do rewriting...but just a bit differently. Just enough, as always, to make me want to tear my hair out. If you aren't doing rewriting, then that simplifies matters significantly. On Thu, Feb 25, 2010 at 6:52 PM, Charlie Griefer charlie.grie...@gmail.com wrote: While I do advocate keeping your development setup as close to the production setup as possible, I've always used Apache locally, even if I was using IIS remotely. Made it easier to do things like multiple sites and setting up the .dev sites as outlined above and in the blog entry i linked above. I believe that nowadays IIS does the multiple sites thing. If that's the case, you should still be able to set up the foo.dev and bar.dev sites in IIS, which gives you the equivalent of top level domains, even though they're subdirectories within your webroot. On Thu, Feb 25, 2010 at 6:34 PM, Jeff U j...@uspokerdirectory.com wrote: Definitely should have included that. WinXP, IIS, CF9 Development Server, used built-in webserver. Prefer to keep it that way for simplicity sake. Thanks guys. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331149 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4