Welcome to the Web Developer and Business Applications Forum

Here's how you can participate: Below are the general forums where you can post. Select the one that best fits the topic you wish to address.

To create a new discussion thread/topic: click on the forum link below where you'd like to add your thread, such as Tips and Tricks Exchange. Then, once you've logged in, click on the New Topic link at the top. This will allow you to create a new thread.

To respond to a current thread or post: click on the forum where the post resides, then click on the link to the thread you are responding to, and at the top click the Reply link.

If you have any questions, please feel free to call us at 630-916-0662.



A Message Board, Guestbook, or Poll hosted for your website.
Register Login New Posts Chat
 
mrc > Forums > m-Power Tips and Tricks > Setting up your m-Power server to host both a development and production environments
 
Username:  
Password:  
 
   
 


Thread Tools Search This Thread 
Reply
 
Author Comment
 
charliehlouis
Registered: 11/29/05
Posts: 22

    11/06/06 at 11:03 AMReply with quote#1

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




Previous Thread | Next Thread
Reply

  Bookmarks  
Digg Diggdel.icio.us del.icio.usStumbleUpon StumbleUponGoogle Google

mrc (US)
555 Waters Edge
Suite 120
Lombard, IL 60148
630-916-0662
mrc (UK)
Argyle House
1 Dee Road
Richmond, Surrey
TW9 2JN
+44-20-8322-7720