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.
- Check that you have the required software installed and configured correctly - see: prerequisites.
- Get the InterMine software
- Create the databases
> createdb flymine_xx > createdb userprofile-flymine_xx
- Get the latest database dump from: http://www.flymine.org/download/
- Load it into the new database:
> zcat database_dump | psql flymine_xx
- Analyse the database to update Postgres' statistics:
> psql flymine_xx > set default_statistics_target = 500; > analyse;
- Configure
- Copy the example flymine.properties and build.properties files to your home directory
- Edit them to include your own database and tomcat locations and usernames/passwords.
- Release the web application. In flymine/webapp:
# the first time only > ant build-db-userprofile > ant default release-webapp
You only need to run 'build-db-userprofile' the first time you set up a webapp. Use ant remove-webapp if there is already a web application deployed at the specified path:# to re-release the webapp > ant default remove-webapp release-webapp
