Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Everything externally facing is currently running on isda-maven1.  There are two server stacks running, the Fisheye server (which is their own hacked-up Tomcat running out of /home/fisheye and listening on port 8060, its default) and a conventional apache+tomcat setup that serves up Artifactory and OpenGrok.  It's all linked to from the static html page served by apache from its htdoc directory.

If it breaks:

Try restarting; "/etc/init.d/web stop" will take down all of the above services, and "... start" will bring them all back.  Some of them take quite a while to shut down, so make sure there are no running java processes before you restart.

...

  1. check out the source tree under /home/opengrok/src/<name>
  2. make a copy of the indexing script that references the new names
  3. index that source tree into /home/opengrok/data/<name>
  4. add checkout/index maintenance to the cron job
  5. add apache httpd.conf mod_jk glue for the new application
  6. configure an instance of the web application to refer to the source and data directories defined above
  7. install it in the source subdirectory of tomcat's webapp directory
  8. add apache httpd.conf mod_jk glue for the new application
  9. restart tomcat and httpd

Modifying opengrok applications:

The location for .war development for OpenGrok applications is in /home/opengrok/wars.  You may want to modify the application to change, for instance, the appearance of header banners, icons, links, or whatever.  Let's say you wanted to change the krb5 opengrok setup: you'd run:

  1. cd /home/opengrok/wars/krb5
  2. Wiki Markup
    \[edit stuff\]
  3. zip -r ../krb5.war *
  4. cp -f ../krb5.war /home/apache-tomcat-5.5.25/webapps/

Tomcat will automatically notice the new .war within a few seconds and unpack it; no further action is needed.