languagetool-org/languagetool-community-website — pull request #17 by Mailaender (2014-06-17 09:58:44+00:00)
Title: Moved to the Wikimedia Foundation Labs server infrastructure

I got http://tools.wmflabs.org/languagetool/wikiCheck to work. These are the neccessary changes for the configuration. This is meant for documentation purposes. Deployment is not yet automatized although I wrote some scripts so I don't forget.

* Change the configuration files as stated in this pull request.
* Get the password (does not work via SFTP, permission denied):
```bash
ssh username@tools-login.wmflabs.org
become languagetool
nano replica.my.cnf
```

* Build the WAR is instructed in https://github.com/languagetool-org/languagetool-community-website/pull/16 locally. I have not yet managed to get grails/mvn to work on the WMF server. Although it may be preferrable to just update and build from git there.

* Upload the WAR and deploy as following. The exact filename is important.
```bash
scp target/ltcommunity-0.1.war username@tools-login.wmflabs.org:/data/project/languagetool/
ssh username@tools-login.wmflabs.org
become languagetool
webservice -tomcat stop
rm -rf public_tomcat/webapps/*
mv ltcommunity-0.1.war public_tomcat/webapps/languagetool.war
webservice -tomcat start
webservice -tomcat restart
```

Wait a moment. This takes several minutes. Almost every deployment/configuration error results in 404 for no apparent reason and is not properly displayed on the web. I found `/data/project/languagetool/error.log` to be the most helpful one. There are also some in `/data/project/languagetool/public_tomcat/logs/`

Most parts of http://tools.wmflabs.org/languagetool/ already work. I could not find the corpus files and the recent changes feed is not setup correctly, but now that we have access to live Wikipedia DB replicates, this has to be re-implemented anyway.