...
Info |
---|
The following directions are for DSpace 1.5.x and above! |
Directories:
{{\Wiki Markup [dspace
\]
}} \ - The DSpace Installation directoryunmigrated-wiki-markup- {{\
[dspace-source
\]/dspace/
}} \ - The DSpace Assembly project within the DSpace source codeunmigrated-wiki-markup - {{\
[dspace-source
\]/dspace/target/dspace-
\[version
\]-build.dir/
}} \ - The directory where the DSpace Assembly project builds a new installation package for DSpace.unmigrated-wiki-markup - {{\
[Tomcat
\]/webapps/
}} (Mac OSX Server: {{/library/jboss/3.2/deploy
}}) - Note: JBOSS comes pre-installed with Mac OS X server. However, for both server and desktop editions Tomcat may be used as with other platforms.
...
- Stop Tomcat (WARNING: this will bring down the website)
- unmigrated-wiki-markup
- (Linux / OS X / Solaris) {{\
[Tomcat
\]/bin/shutdown.sh
}} - (Mac OS X Server) Use Server Admin to stop Tomcat ("Application Server")
- (Windows) Use Tomcat Service Monitor (in Notification Area) to stop Tomcat
- (Linux / OS X / Solaris) {{\
- Start Tomcat
(Linux / OS X / Solaris) {{\Wiki Markup [Tomcat
\]/bin/startup.sh
}}- (Mac OS X Server) Use Server Admin to start Tomcat ("Application Server")
- (Windows) Use Tomcat Service Monitor (in Notification Area) to start Tomcat
...
- Log on to the server DSpace is running on (e.g. ssh). Make sure to login as the user who initially installed DSpace!
Open a command prompt (if you don't have one already), and {{Wiki Markup cd
\[dspace-source
\]/dspace/
}}mvn package
(recompiles all DSpace code and rebuilds the DSpace installation package)unmigrated-wiki-markup- {{
cd
\[dspace-source
\]/dspace/target/dspace-
\[version
\]-build.dir/
}} (move into the _target_ directory where DSpace has been rebuilt) ant update
(updates your DSpace install based on the newly built content in your target directory)- unmigrated-wiki-markup
- Alternatively, if you do not need to reinstall JAR files, you could instead run {{
ant
update_webapps
}} (which just copies over web application changes to your {{\[dspace
\]
}})
- Alternatively, if you do not need to reinstall JAR files, you could instead run {{
If you do not have Tomcat pointing at your {{\Wiki Markup [dspace
\]/webapps/
}} directory, you will also need to copy your final web application(s) into your {{\[Tomcat
\]/webapps/
}} directory. {{Wiki Markup cp
\-R
\[dspace
\]/webapps/
\[Tomcat
\]/webapps/
}}- (For Mac OS X Server)
cp build/*.war /library/jboss/3.2/deploy
- Test your changes in DSpace
...
- Log on to the server DSpace is running on (e.g. ssh). Make sure to log in as the user who initially installed DSpace!
Open a command prompt (if you don't have one already), and {{Wiki Markup cd
\[dspace-source
\]/dspace/
}}mvn clean package
(removes all old compiled code and recompiles all DSpace code and rebuilds the DSpace installation package)unmigrated-wiki-markup- {{
cd
\[dspace-source
\]/dspace/target/dspace-
\[version
\]-build.dir/
}} (move into the _target_ directory where DSpace has been rebuilt) ant update
(updates your DSpace install based on the newly built content in your target directory)- unmigrated-wiki-markup
- Alternatively, if you do not need to reinstall JAR files, you could instead run {{
ant
update_webapps
}} (which just copies over web application changes to your {{\[dspace
\]
}})
- Alternatively, if you do not need to reinstall JAR files, you could instead run {{
- If you do not have Tomcat pointing at your {{\
[dspace
\]/webapps/
}} directory, you will also need to copy your final web application(s) into your {{\[Tomcat
\]/webapps/
}} directory. {{Wiki Markup cp
\-R
\[dspace
\]/webapps/
\[Tomcat
\]/webapps/
}}- (For Mac OS X Server)
cp build/*.war /library/jboss/3.2/deploy
- Test changes in DSpace
- unmigrated-wiki-markup
- To force Tomcat to recompile everything, you may also wish to remove any DSpace related web application directories created in {{\
[Tomcat
\]/work/Catalina/localhost
}}
- To force Tomcat to recompile everything, you may also wish to remove any DSpace related web application directories created in {{\
- Start Tomcat
- unmigrated-wiki-markup
- (Linux / OS X / Solaris) {{\
[Tomcat
\]/bin/startup.sh
}} - (Mac OS X Server) Use Server Admin to start Tomcat ("Application Server")
- (Windows) Use Tomcat Service Monitor (in Notification Area) to start Tomcat
- (Linux / OS X / Solaris) {{\
- Test your changes in DSpace