Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Running services

Samuel edited this page Apr 12, 2022 · 1 revision

Apache (Windows only)

  • Download Apache

  • Install it with the .msi

  • Download the Mod_WSGI package for Windows to be able to link the Django app up to the Apache server.

    • Get the 32 bit version of the mod_wsgi and place it in Apache2.2/modules.
  • Edit httpd.conf to include the mod_wsgi library by adding the following line in the 'LoadModule' section:

LoadModule wsgi_module modules/mod_wsgi-py27-VC9.so
  • Run the generate_apache_wsgi.py file supplying a command line argument of the root project directory e.g. python Webapp/autoreduce_webapp/apache/generate_apache_wsgi.py C:\autoreduction

  • Add Include /path/to/git/repo/WebApp/autoreduce_webapp/apache/apache_django_wsgi.conf to the /apache/install/location/conf/httd.conf file to ensure the django assets are discovered and served.

  • Start Apache as either a service or just through the command line by running httpd.exe found in Apache2.2/bin/httpd.exe.

Run Detection (windows instructions)

  • Open the Task Scheduler application from the windows start menu as Administrator
  • Create a new task
  • Name the service something sensible (we suggest autoreduction-ingest)
  • Check Run whether user is logged on or not option
  • Add a new trigger to repeat every minute
  • Add a new action:
    • Program/Script: C:\Python37\python.exe (the location of your python executable)
    • Add arguments(optional): C:\autoreduction\monitors\run_detection.py (location of run_detection script)
  • Click okay and the service should start running every minute

If this service fails to start, debug it using the windows Event viewer. you should see any errors caused by starting the service under Windows Logs > Application

ISIS data archive mount (Linux only)

Note: Staff arriving from outside of ISIS will need to be granted access to the archive - please contact one of the developers or [email protected]

The instructions here have been replaced with configuration in Ansible which is used for Production and will always be up to date.

Clone this wiki locally