To deploy as a war under Tomcat:
- ruby (2.0)
- Jruby (1.7)
- Tomcat 6.x
- Postgresql 9.x
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable
source /home/ubuntu/.rvm/scripts/rvm
rvm install jruby-1.7.16.1
rvm install ruby-2.0.0-p594
echo "export JRUBY_OPTS=--2.0" > ~/.bash_profile
sudo apt-get install postgresql
sudo apt-get install tomcat6
git clone https://github.com/latin-language-toolkit/llt
cd llt
rvm use jruby
bundle
gem install llt
gem install warbler
warble
git clone https://github.com/latin-language-toolkit/llt-db_handler
cd llt-db_handler
su - postgres
psql
create user prometheus with password 'admin'
alter user prometheus with createdb
create database prometheus
\q
rake db:prometheus:create -h [hostname]
rake db:prometheus:seed -h [hostname]
N.B. on using the Rake tasks for the DB:
- the rake tasks are for localhost. You will need to update the tasks.rb to change the hostname if you aren't installing on localhost
(Back in the llt directory)
curl --upload-file llt.war "http://admin:PASSWORD@http://hostname:8080/manager/deploy?path=/llt&update=true"
If you get an error about an invalid multibyte sequence when you deploy the war make sure tomcat is set to run with LANG=UTF-8 (e.g. via JAVA_OPTS=-Dfile.encoding=UTF-8)