This is a simple Flask application to manage the list of applications of IMP to biological systems at https://integrativemodeling.org/systems/.
-
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/systems.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.SYSTEM_TOP
: directory containing metadata for each system (this is populated by theutil/update_metadata.py
script).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
rules to the Apache configuration to point/systems/static
to<WEBTOP>/static
and/systems/info
to<SYSTEM_TOP>
. - Add a suitable
WSGIScriptAlias
rule to the Apache configuration pointing/systems
to<WEBTOP>/systems.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).