Skip to content
Snippets Groups Projects
Commit 64d115a6 authored by Simon Will's avatar Simon Will
Browse files

Make sbatch scripts use prod by default

parent 9661b84f
No related branches found
No related tags found
No related merge requests found
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
#SBATCH --partition=students #SBATCH --partition=students
#SBATCH --gres=gpu:1 #SBATCH --gres=gpu:1
#SBATCH --nodes=1 #SBATCH --nodes=1
#SBATCH --mem=5GB #SBATCH --mem=10GB
#SBATCH --time=3-00:00:00 #SBATCH --time=3-00:00:00
THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
cd "$THIS_DIR" cd "$THIS_DIR"
PORT=5051 PORT=5050
CLUSTER_MAIN_NODE=node00 CLUSTER_MAIN_NODE=node00
export FLASK_APP=joeynmt_server.fullapp:app export FLASK_APP=joeynmt_server.fullapp:app
export FLASK_ENV=development export FLASK_ENV=production
export FLASK_DEBUG=true export FLASK_DEBUG=true
export JOEYNMT_SERVER_REPO="$HOME/ma/joeynmt-server" 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 if [ -z "$CONDA_DEFAULT_ENV" ]; then
. "$HOME"/anaconda3/etc/profile.d/conda.sh . "$HOME"/anaconda3/etc/profile.d/conda.sh
......
#!/usr/bin/env bash #!/usr/bin/env bash
#SBATCH --job-name=joeynmt-server #SBATCH --job-name=joeynmt-server
#SBATCH --partition=compute #SBATCH --partition=students
#SBATCH --nodelist=node40 #SBATCH --gres=gpu:1
#SBATCH --nodes=1 #SBATCH --nodes=1
#SBATCH --mem=5GB #SBATCH --mem=5GB
#SBATCH --time=1-00:00:00 #SBATCH --time=3-00:00:00
PORT=5050 PORT=5050
CLUSTER_MAIN_NODE=node00 CLUSTER_MAIN_NODE=node00
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment