diff options
author | Patrick Simianer <p@simianer.de> | 2016-06-28 07:54:28 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-06-28 07:54:28 +0200 |
commit | 8dbeb939f88acf140da08b43f07331e91ce21464 (patch) | |
tree | 36d630d1c163466c5ee5b8766104438601d7b5ae /util/run_session | |
parent | 32715e9afbc1f08a32c3ef55c08d3a2ae1b2816e (diff) | |
parent | 7eda85c78af2fbe8d42580c6e3065cb254f40b26 (diff) |
Merge branch 'master' of github.com:pks/lfpe
Diffstat (limited to 'util/run_session')
-rwxr-xr-x | util/run_session | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/util/run_session b/util/run_session new file mode 100755 index 0000000..a4b7a6c --- /dev/null +++ b/util/run_session @@ -0,0 +1,17 @@ +#!/bin/bash -x + +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 +SESSION_DIR=$BASE_DIR/sessions/$SESSION + +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 + |