User profile database
The user profile is an InterMine ObjectStore which stores Profile information such as username and password, tags, queries, lists and templates.
First you must create the empty database in Postgres. Use this command, replacing HOST and USER with the correct values:
% createdb userprofile -h HOST -u USER
These commands are needed in the webapp to initialise a userprofile database:
# in <MINE_NAME>/webapp % ant build-db-userprofile
If you already have a userprofile database and want to keep the data it contains, you can do this:
# in <MINE_NAME>/webapp % ant write-userprofile-xml % ant build-db-userprofile % ant read-userprofile-xml
See UserProfilePorting for instructions on what to do when you have a new production database but want to keep your userprofile database too.
Templates and tags
Default templates and tags are defined in <MINE_NAME>/webapp/src/default-template-queries.xml
These are loaded when you release a webapp.
See: WebappRelease
