medicine-mts/local-server.sh

28 lines
640 B
Bash
Executable File

#!/bin/sh
docker stop medicine-call-local-server
docker rm medicine-call-local-server
open -n -a "Google Chrome" --args "http://0.0.0.0:9400/admin/"
docker run --rm \
--name medicine-call-local-server \
--network=local-network \
--volume .:/app \
--volume medicine-call-local:/app/public \
--publish 9400:80 \
--env-file .env \
medicine-call-local:latest \
uwsgi \
--http 0.0.0.0:80 \
--wsgi-file wsgi.py \
--workers 2 \
--threads 2 \
--master \
--py-autoreload 1 \
--disable-write-exception \
--disable-logging \
--buffer-size 32768 \
--http-timeout 30 \
--check-static /app/