Multiple Apps on localhost:8500
I've always developed code by editing files directly on my development server and using the development server to test before deployment. I'm going to begin editing and testing code locally using the built in web server in MX, so that the development machine can become more of a staging machine, but I wonder how you all handle the fact that the standalone server can only host one app at a time? I often switch between projects throughout the day and it seems like moving files in and out of the wwwroot folder depending on what project I'm working on is a kludgey solution. How do you all overcome this situation? I would like to avoid using sub-directories because of absolute paths and such. Thanks. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Multiple Apps on localhost:8500
I use apache! -Original Message- From: Sean Daniels [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 24 September 2002 2:28 p.m. To: CF-Talk Subject: Multiple Apps on localhost:8500 I've always developed code by editing files directly on my development server and using the development server to test before deployment. I'm going to begin editing and testing code locally using the built in web server in MX, so that the development machine can become more of a staging machine, but I wonder how you all handle the fact that the standalone server can only host one app at a time? I often switch between projects throughout the day and it seems like moving files in and out of the wwwroot folder depending on what project I'm working on is a kludgey solution. How do you all overcome this situation? I would like to avoid using sub-directories because of absolute paths and such. Thanks. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Multiple Apps on localhost:8500
Subdirectories will work if you customize your absolute paths properly ... If you have an application.cfm file in the root of your application, simply place this line in that application.cfm file to determine your application root directory dynamically cfset request.abspath = GetDirectoryFromPath(GetCurrentTemplatePath()) then just use this path as the starting point for all your other absolute paths. I've been able to move the app around anywhere I like without breaking any of my absolute paths... What was a little more difficult was determining the directories which exist between the web root and the application directory, i.e. the web root is in wwwroot, but the application is in wwwroot/mystuff/myapplication3 the path I want is mystuf/myapplication3 -- it's doable, but it's difficult. I used a cfif clause and a regular expression to do it. Isaac Certified Advanced ColdFusion 5 Developer www.turnkey.to 954-776-0046 I've always developed code by editing files directly on my development server and using the development server to test before deployment. I'm going to begin editing and testing code locally using the built in web server in MX, so that the development machine can become more of a staging machine, but I wonder how you all handle the fact that the standalone server can only host one app at a time? I often switch between projects throughout the day and it seems like moving files in and out of the wwwroot folder depending on what project I'm working on is a kludgey solution. How do you all overcome this situation? I would like to avoid using sub-directories because of absolute paths and such. Thanks. __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Multiple Apps on localhost:8500
On Monday, September 23, 2002, at 07:28 PM, Sean Daniels wrote: I'm going to begin editing and testing code locally using the built in web server in MX, so that the development machine can become more of a staging machine, but I wonder how you all handle the fact that the standalone server can only host one app at a time? I often switch between projects throughout the day and it seems like moving files in and out of the wwwroot folder depending on what project I'm working on is a kludgey solution. I think you are confusing the fact that CFMX, when it reverts to developer mode, is limited to requests from localhost and 1 additional IP address. The number of browser, and browser windows on both ( and the number of CFMX apps they can be invoking) is essentially unlimited. While writing some articles about CFMX, using the Default server, I would have browser windows open to 5 or 6 applications I wrote, the administrator, example programs, CFMX Docs, and Petmarket Blueprint. No Problem other than a cluttered screen I am saving versions of programs into wwwroot, then executing them. For example, to validqate the article, I copy/paste a CFMX program from the article int o my editor, save to wwwroot, then run the program in the browser. -- One program primes a PostgreSQL database, the next does a query against the primed db, Then I repeat the process foe MySQL, SyBase, Oracle, etc. I am limited only by my typing ability, not by CFMX Developer or the default server. HTH Dick __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists