diff --git a/joeynmt-server-on-cluster.sh b/joeynmt-server-on-cluster.sh index fc6ad8320a0b59fb26fed48e0511ca11c0acdff2..8c7513b849e4e9c1b3614d173fa5d2b203a5f717 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 35f75b68cb12c58f7f4ed56f0e3d7db2738f0ab3..2a9dbb19b1701249b4b1a4c84838f978a2b9078f 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