Skip to content

Instantly share code, notes, and snippets.

View zhangchenchen's full-sized avatar

pekingzcc zhangchenchen

View GitHub Profile
@hktonylee
hktonylee / manage.py
Last active December 19, 2018 21:41
Flask + manage.py + gunicorn + auto-reload + Flask-Sockets + anything you can do with gunicorn script
#!./venv/bin/python3
import os
import sys
import subprocess
from flask_migrate import MigrateCommand
from flask_script import Manager, Command, Option
BASE_DIR = os.path.dirname(os.path.abspath(__file__))