summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rwxr-xr-xutil/run_beta_test4
-rwxr-xr-xutil/run_server22
2 files changed, 14 insertions, 12 deletions
diff --git a/util/run_beta_test b/util/run_beta_test
index a0fe20f..9180b52 100755
--- a/util/run_beta_test
+++ b/util/run_beta_test
@@ -1,8 +1,8 @@
#!/bin/zsh -x
-cd /fast_scratch/simianer/lfpe/lfpe/util
+cd /srv/postedit/lfpe/util
./kill; ./kill; ./kill;
-for i in ../../sessions/product_de-en_beta_test_*; do
+for i in `ls -1 ../../sessions/ | grep -v "_1_" | grep -v data | grep -v toy`; do
echo $i
echo $(basename $i)
./run_server $(basename $i) &; sleep 600;
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