Re: How can I change my application name
Re: How can I change my application name
- Subject: Re: How can I change my application name
- From: Gerald Hanks <email@hidden>
- Date: Wed, 26 Nov 2003 11:18:04 -0700
This is something that we have done for sometime now so that we can maintain a development, test, and production version. I will explain how we did it. I do not make any changes in ProjectBuilder for this to work.
First of all we created two directories to hold our dev and test apps in alongside the main webobjects applications directory.
/Library/WebObjects/Applications
/Library/WebObjects/Applications-Test
/Library/WebObjects/Applications-Dev
For simplicity I will call my app MyApp. I have loaded each directory with a copy of MyApp so that my directories look like this:
/Library/WebObjects/Applications/MyApp.woa
/Library/WebObjects/Applications-Test/MyApp.woa
/Library/WebObjects/Applications-Dev/MyApp.woa
I then use the JavaMonitor to load three applications MyApp, MyAppTest, MyAppDev. The path for each application is as follows:
/Library/WebObjects/Applications/MyApp.woa/MyApp for MyApp
/Library/WebObjects/Applications-Test/MyApp.woa/MyApp for MyAppTest
/Library/WebObjects/Applications-Dev/MyApp.woa/MyApp for MyAppDev
The only thing that I have to remember is to update the eomodel files to connect to the correct database. The file to change is:
MyApp.woa/Contents/Resources/myapp.eomodeld/index.eomodeled
At the top of this file is a line like this:
URL = "jdbc:mysql://www.mydomain.com/myapp";
I just update the three different files with the appropriate url for the database like this:
URL = "jdbc:mysql://www.mydomain.com/myapp";
URL = "jdbc:mysql://www.mydomain.com/myapp_test";
URL = "jdbc:mysql://www.mydomain.com/myapp_dev";
Now when I want to test my app on the server I can just connect to my MyAppDev applications. My testers connect to the MyAppTest application and my live site uses the MyApp application. I have created some shell scripts that pretty much automate the build, upload, install, url modification process. It all works rather well. And I don't have to mess with any of the settings in ProjectBuilder and I always have just one copy of the source code. If you need more info on what I am doing just let me know.
-gerald
>>This should be easy, but I'm missing some detail.
>>
>>I have a deployed project. I want to clone it with a different name so
>>that I can deploy two versions side by side on the same server. The
>>objective is to give the user a training or demonstration program,
>>accessing a separate copy of the database.
>>
>>I also want to be able to make experimental changes to the interface
>>and logic of the test program without upsetting the other one.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.