Difference between revisions of "AgShare/Tech"
Paulproteus (talk | contribs) |
Paulproteus (talk | contribs) |
||
Line 22: | Line 22: | ||
== Restarting Tomcat == | == Restarting Tomcat == | ||
− | The AgShare deployment uses a Tomcat instance in its $HOME (supported by the tomcat6-instance-create script). | + | The AgShare deployment uses a Tomcat instance in its $HOME (supported by the tomcat6-instance-create script). It's wrapped as "/etc/init.d/agshare" so the boot process can use it. But you can restart it this way: |
* ~/tomcat/bin/shutdown.sh | * ~/tomcat/bin/shutdown.sh |
Revision as of 22:28, 17 September 2010
The AgShare deployment works analogously to the CC Labs deployment of DiscoverEd. Some important things to note:
- Username: agshare
- Host name: search.agshare.org (currently the same as discovered.labs.creativecommons.org)
So, for example, to set up your environment, do:
$ sudo su - agshare
Given that, give Running DiscoverEd a look!
Deploying new WARs
To deploy a new war, do this:
- cp nutch-1.1.war ~/tomcat/webapps/ROOT.war
Then restart Tomcat.
Restarting Tomcat
The AgShare deployment uses a Tomcat instance in its $HOME (supported by the tomcat6-instance-create script). It's wrapped as "/etc/init.d/agshare" so the boot process can use it. But you can restart it this way:
- ~/tomcat/bin/shutdown.sh
- ~/tomcat/bin/startup.sh
Starting Tomcat at boot
/etc/rc.local contains a call to run ~/tomcat/bin/startup.sh as the agshare user. That's kind of hackish, I realize.