Here's a quick guide to setting up your server to host both development and production environments.
Before we get started, why would you want to do this? Well, there are many reasons. The most common, though, is probably to allow your developers to make changes to, or update current applications in the development environment without disrupting your live applications in your production environment.
Here's how to do it using m-Power with Tomcat:
1) First, copy your m-Power directory to a new instance (we'll call ours m-Powerprod)
2) In m-Powerprod, edit the start_tomcat.bat file. Change the rem set Catalina_Home to reference new directory. For instance,
“rem set CATALINA_HOME=C:\m-Powerprod\tomcat”
3) Copy the above line to be inserted into the end_tomcat.bat file, and insert said line directly after the set JAVA_HOME line.
4) Next, go to m-Powerprod\tomcat\conf and open server.xml.
5) Rename first line so that server port=XXXX, is different than what is currently listed. For instance, if it currently reads 8015, change to 8016.
6) Half way down the same .xml file, you should see . Change this is to a new port number. Note: If you are setting up a production server, consider utilizing port 80 (if it is available) as this is the default port for the Web. Make the same change two lines below. NOTE: Be sure to update the docBase to reference the new location of mrc -- in this case, /m-powerprod
7) Save all files.
8) Now when you start tomcat, be sure to point to the new instance of start_tomcat.sh