This repo is obsolete. Please use the imp_nightly_builds repo instead.
This is a simple Flask application to show the IMP nightly build results page at https://integrativemodeling.org/nightly/results/.
-
Create a file
Makefile.include
in the same directory asMakefile
that sets theWEBTOP
variable to a directory readable by Apache. -
Create a configuration file
<WEBTOP>/instance/imp-results.cfg
. This should be readable only by Apache (since it contains passwords) and contain a number of key=value pairs:HOST
,DATABASE
,USER
,PASSWORD
: parameters to connect to the MySQL server.TOPDIR
,LAB_ONLY_TOPDIR
: directories where IMP build results (both public and lab-only) can be found.MAIL_SERVER
,MAIL_PORT
,ADMINS
: host and port to connect to to send emails when the application encounters an error, and a Python list of users to notify.
- Install
mod_wsgi
. - Add
Alias
rule to the Apache configuration to point/nightly/results/static
to<WEBTOP>/static
. - Add a suitable
WSGIScriptAlias
rule to the Apache configuration pointing/nightly/results/
to<WEBTOP>/results.wsgi
.
Use make test
to test changes to the application, and make install
to
deploy it (this will install the files to the WEBTOP
directory).