diff options
author | Patrick Simianer <p@simianer.de> | 2016-05-10 10:59:49 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-05-10 10:59:49 +0200 |
commit | 8dd7a811559deafbe9262f11be2d592617b030a1 (patch) | |
tree | e30c76fbbea82f89dd10e56c35e70ec357bb24b4 /util/run_server | |
parent | 189698c044eb3362e65d213c35f425694eba9f27 (diff) | |
parent | 6bd7135e6039b0682f49234e42451077413f0bd9 (diff) |
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'util/run_server')
-rwxr-xr-x | util/run_server | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/util/run_server b/util/run_server index 7d45583..a4b7a6c 100755 --- a/util/run_server +++ b/util/run_server @@ -1,15 +1,17 @@ #!/bin/bash -x -export LD_LIBRARY_PATH=/fast_scratch/simianer/lfpe/lib/nanomsg-0.5-beta/lib:$LD_LIBRARY_PATH -export PYTHONPATH=/fast_scratch/simianer/lfpe/lib/python:$PYTHONPATH -export GEM_PATH=/fast_scratch/simianer/lfpe/lib/ruby/:$GEM_PATH -UTIL=/fast_scratch/simianer/lfpe/lfpe/util +BASE_DIR=/srv/postedit +export LD_LIBRARY_PATH=$BASE_DIR/lib/nanomsg-0.5-beta/lib:$LD_LIBRARY_PATH +export PYTHONPATH=$BASE_DIR/lib/python:$PYTHONPATH +export GEM_PATH=$BASE_DIR/lib/ruby/:$GEM_PATH +UTIL=$BASE_DIR/lfpe/util SESSION=$1 -DIR=/fast_scratch/simianer/lfpe/sessions/$SESSION +SESSION_DIR=$BASE_DIR/sessions/$SESSION -rm $DIR/work/lockfile -rm -r $DIR/work/ -mkdir -p $DIR/work -cp $DIR/data.json.original $DIR/data.json -$UTIL/../server.rb $DIR/conf.rb &>$DIR/work/session.out +rm $SESSION_DIR/work/lockfile +rm -r $SESSION_DIR/work/ +mkdir -p $SESSION_DIR/work +cp $SESSION_DIR/data.json.original $SESSION_DIR/data.json +cp $SESSION_DIR/g/original/* $SESSION_DIR/g/ +$UTIL/../server.rb $SESSION_DIR/conf.rb &>$SESSION_DIR/work/session.out |