How to set up a mirror of FlyMine

These instructions show you how to set up a local copy of FlyMine. You can release your own copy of the web application to use or you can query it with the Java API. If you would like integrate your own data with FlyMine the procedure is different - follow these instructions.

  1. Check that you have the required software installed and configured correctly - see: prerequisites.
  2. Get the InterMine software
  3. Configure
    • Copy the example flymine.properties files to the .intermine directory in your home directory
    • Edit them to include your own database and tomcat locations and usernames/passwords. Also update the SuperUser account to be your email address.
  4. Create the databases
    createdb flymine_VERSION
    createdb userprofile-flymine_VERSION
    
  5. Create a blank database schema. In flymine/dbmodel run:
    ant clean build-db
    
  6. Get the latest database dump from: http://www.flymine.org/download/
  7. Load it into the new database:
    zcat database_dump | psql flymine_VERSION
    
  8. Analyse the database to update Postgres' statistics:
    psql flymine_VERSION
    analyse;
    
  9. Configure GBrowse (optional)
  10. Release the web application
    # in flymine/webapp
    # the first time only
    ant build-db-userprofile
    
    # release webapp
    ant default remove-webapp release-webapp