annotationsatharvard / catcha

Catch-A - Catching Annotation: An annotation backend and API.
http://catcha.readthedocs.io
20 stars 9 forks source link

Deploy API to new rackspace server #27

Closed jmiranda closed 10 years ago

jmiranda commented 10 years ago

Installation instructions

Install Tomcat

sudo apt-get install tomcat7
sudo apt-get install tomcat7-admin

Configure tomcat

Add the following line to /usr/share/tomcat7/bin/setenv.sh to ensure Tomcat has enough memory allocated.

export CATALINA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=128m"

Configure tomcat admin user

Add the following lines to the /etc/tomcat7/tomcat-users.xml

<role rolename="manager-gui,manager-script"/>
<user username="tomcat" password="********" roles="manager-gui,manager-script"/>

Install MySQL

sudo apt-get install mysql-server

Create database

create database catch default charset utf8;
grant all on catch.* to catch@localhost identified by '********';

Build war file

grails war target/catch.war

Deploy WAR to tomcat

Log into the Tomcat manager http://162.242.217.241:8080/manager/html and deploy the generated WAR file to the server.