Version 6 (modified by pav, 16 years ago) (diff) |
---|
Analysis
Overview
The Sophie2 testing sever is an instance of the sophie 2 server which is running on the server machine. It will be updated with the new code written for the server, while the database remains.
Task requirements
- Create runnable jars with the current server modules - org.sophie2.server and org.sophie2.server.persistence.
- Upload the built server modules to the server machine in an appropriate place.(s2s folder maybe).
- Ensure the server is always on, even after a reboot. It should be viewable from outside.
- Take the updated server modules from the hudson builds.
- Create user for sophie 2 server from which the server should be run.
Task result
- Running instance of the server on the server machine with global access.
Implementation idea
- Now maven packages the server and persistence modules, in target folder but without the database. Research how to package also the database.
- Use maven-jspc-plugin to compile the jsps.
- The url can be server.sophie2.org.
Related
PLUGIN_EDITIONS_STRUCTURE_R1
PLATFORM_DEPLOYMENT_BUILD_MAVEN_R0
S2S_CORE_DEPLOYMENT_R0
How to demo
- Show the running server from its url.
Design
The main idea is to run the server module through the !TrueServerMAin launcher. If it starts, the jsps are shown and the database is running also, the task is ready. These are the steps to follow:
- Fix the Main class in the launcher module - the appended parts to the path to the bundles are not correct right now.
- Add the org.sophie2.core bundle to the server.bundles.config file. It is needed for starting the server.
- Correct the creation of the database - it must be created in src/main/resources/db folder. Just set the path to be the DB_NAME field.
- Think out a way to compile the JSPs and add them to the jar so that the server knows where to search them. Use maven-jetty-jspc-plugin. You should create a separate profile for compilation of the jsps. See http://docs.codehaus.org/display/JETTY/Maven+Jetty+Jspc+Plugin.
- Create s2s user in the server machine and copy the needed resources for starting the server (launcher module with the config file listing the needed bundles). Use the result of APP_PLUGIN_STARTUP_R0
- Create bash script with start, stop and restart options.
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)