diff --git a/doc/install.txt b/INSTALL.txt similarity index 70% rename from doc/install.txt rename to INSTALL.txt index 08455b4..5599fb5 100644 --- a/doc/install.txt +++ b/INSTALL.txt @@ -1,47 +1,28 @@ -- sudo apt-get install postgresql libfcgi-dev libpq-dev +- sudo apt-get install postgresql libfcgi-dev libpq-dev mono-complete - clone github repo, mkdir build, cd build, ../cmake.sh, make - sudo -u postgres psql postgres - create user concordia with encrypted password 'concordia'; - CREATE DATABASE concordia_server ENCODING 'UTF8' OWNER concordia TEMPLATE template0; - grant all privileges on database concordia_server to concordia; - sudo vim /etc/postgresql/9.3/main/pg_hba.conf: change "local all all peer" to "local all all md5" -- pgbouncer: wget https://pgbouncer.github.io/downloads/files/1.6/pgbouncer-1.6.tar.gz - - sudo apt-get install libevent-dev +- pgbouncer: + - sudo apt-get install autoconf automake m4 libtool pkg-config libevent-dev autogen + $ git clone https://github.com/pgbouncer/pgbouncer.git + $ cd pgbouncer + $ git submodule init + $ git submodule update + $ ./autogen.sh + $ ./configure ... + $ make + $ make install +- ./db/startPGbouncer.sh - ./db/recreateDb.sh -- nginx: - sudo -s - nginx=stable # use nginx=development for latest development version - add-apt-repository ppa:nginx/$nginx - apt-get update +- nginx: apt-get install nginx - + + + sites-available: - cat_html: - # Default server configuration - # - server { - listen 80 default_server; - listen [::]:80 default_server; - - # SSL configuration - # - # listen 443 ssl default_server; - # listen [::]:443 ssl default_server; - # - # Note: You should disable gzip for SSL traffic. - # See: https://bugs.debian.org/773332 - # - # Read up on ssl_ciphers to ensure a secure configuration. - # See: https://bugs.debian.org/765782 - # - # Self signed certs generated by the ssl-cert package - # Don't use them in a production server! - # - # include snippets/snakeoil.conf; - - root /var/www/html; - - rename default to fcgi_concordia fcgi_concordia: server { @@ -95,8 +76,15 @@ } - add links in sites-enabled, sudo service nginx restart + - sudo apt-get install php apache2 libapache2-mod-php - install cat html to /var/www/html (adjust ajax requests) - sudo apt-get install spawn-fcgi - mkdir index -- ./db/startPGbouncer.sh - ./scripts/restart.sh +- install upstart scripts + + +mgiza-aligner: +- cd mgiza, mgizapp +- sudo apt-get install libboost-thread-dev +- follow instructions in INSTALL diff --git a/cat/README b/cat/README index 93bae65..6faad05 100644 --- a/cat/README +++ b/cat/README @@ -1,5 +1,4 @@ 1. Prepare host.cfg file with the address and port number of Concordia. See host.cfg_example. WARNING there should not be any empty lines in the .cfg files. -2. Prepare version file for each tm in Concordia in teh "versions: directory. +2. Prepare version file for each tm in Concordia in the "versions-" directory. 3. Clean a directory on your webserver (that supports PHP). 4. sudo ./publish.py PATH_ON_SERVER. - diff --git a/cat/css/concordia_cat.css b/cat/css/concordia_cat.css index 644007f..2903305 100644 --- a/cat/css/concordia_cat.css +++ b/cat/css/concordia_cat.css @@ -122,7 +122,7 @@ cursor:pointer; } -.fragmentDetails { +.example { border-style: solid; border-width: 5px; border-color:#19424F; diff --git a/cat/js/cat.js b/cat/js/cat.js index d76c279..978dc93 100644 --- a/cat/js/cat.js +++ b/cat/js/cat.js @@ -47,6 +47,7 @@ function phraseSearchHandle(tmid, intervals) { function renderResult(data) { var res = ''; + var disablePhraseSearch = true; if (typeof(data['result']['bestOverlayScore']) === 'undefined') { // ignore @@ -89,29 +90,35 @@ function renderResult(data) { } function renderFragment(fragment, number) { - var result = '