From 64d115a680663943025fe282a5ca0e59120855d0 Mon Sep 17 00:00:00 2001 From: Simon Will <will@cl.uni-heidelberg.de> Date: Fri, 2 Apr 2021 22:41:43 +0200 Subject: [PATCH] Make sbatch scripts use prod by default --- joeynmt-server-on-cluster.sh | 8 ++++---- joeynmt-uwsgi-on-cluster.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/joeynmt-server-on-cluster.sh b/joeynmt-server-on-cluster.sh index fc6ad83..8c7513b 100755 --- a/joeynmt-server-on-cluster.sh +++ b/joeynmt-server-on-cluster.sh @@ -3,19 +3,19 @@ #SBATCH --partition=students #SBATCH --gres=gpu:1 #SBATCH --nodes=1 -#SBATCH --mem=5GB +#SBATCH --mem=10GB #SBATCH --time=3-00:00:00 THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) cd "$THIS_DIR" -PORT=5051 +PORT=5050 CLUSTER_MAIN_NODE=node00 export FLASK_APP=joeynmt_server.fullapp:app -export FLASK_ENV=development +export FLASK_ENV=production export FLASK_DEBUG=true export JOEYNMT_SERVER_REPO="$HOME/ma/joeynmt-server" -export ASSETS="$JOEYNMT_SERVER_REPO/dev-assets" +export ASSETS="$JOEYNMT_SERVER_REPO/prod-assets" if [ -z "$CONDA_DEFAULT_ENV" ]; then . "$HOME"/anaconda3/etc/profile.d/conda.sh diff --git a/joeynmt-uwsgi-on-cluster.sh b/joeynmt-uwsgi-on-cluster.sh index 35f75b6..2a9dbb1 100644 --- a/joeynmt-uwsgi-on-cluster.sh +++ b/joeynmt-uwsgi-on-cluster.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash #SBATCH --job-name=joeynmt-server -#SBATCH --partition=compute -#SBATCH --nodelist=node40 +#SBATCH --partition=students +#SBATCH --gres=gpu:1 #SBATCH --nodes=1 #SBATCH --mem=5GB -#SBATCH --time=1-00:00:00 +#SBATCH --time=3-00:00:00 PORT=5050 CLUSTER_MAIN_NODE=node00 -- GitLab