Flaskã¨ãã§ä½ã£ãã¡ãã£ã¨ãããµã¼ãã¼ã®èµ·å/åæ¢ç¨ã®ã·ã§ã«ã¹ã¯ãªããã gunicornã§ãã¼ã¢ã³ç¶æ ã«ãã¦ããã startã§èµ·åãstopã§çµäºãrestartã§stop+startã #!/bin/sh PROGNAME=`basename $0` BASEDIR=`dirname $0` PIDFILE=$BASEDIR/$PROGNAME.pid start() { echo "Starting server..." cd $BASEDIR gunicorn flaskhello:app -p $PIDFILE -D } stop() { echo "Stopping server..." kill -TERM `cat $PIDFILE` rm -f $PIDFILE } usage() { echo "usage: $PROGNAME start|stop|restar
{{#tags}}- {{label}}
{{/tags}}