diff --git a/.gitignore b/.gitignore index 7d7ed5c..866ad94 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ env/ env/* venv/ venv/* -.idea/ \ No newline at end of file +.idea/ +*.pyc +__pycache__/ +__pycache__/* \ No newline at end of file diff --git a/README.md b/README.md index e69de29..42d971f 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,14 @@ +# Run + +## in Development +`export FLASK_APP=run.py` +`export FLASK_ENV=development` +`flask run` + +# in production +`gunicorn -w 4 -b 127.0.0.1:5000 app:app` +* `-w` workers +* `-b` bind to address / unix socker + +or using unix sock: +`gunicorn --workers 4 --bind unix:app.sock -m 007 wsgi:app ` \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e5adb79..f923120 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,117 +1,4 @@ -alembic==1.0.0.dev0 -ansible==2.7.7 -apache-libcloud==2.4.0 -argcomplete==1.11.1 -arrow==0.15.5 -asn1crypto==0.24.0 -Babel==2.6.0 -bcrypt==3.1.6 -binaryornot==0.4.4 -blinker==1.4 -certifi==2018.8.24 -chardet==3.0.4 -Click==7.0 -colorama==0.3.7 -configobj==5.0.6 -console-log==0.2.10 -cookiecutter==1.7.0 -cryptography==2.6.1 -dataset==1.3.1 -decorator==4.3.0 -distro-info==0.21 Flask==1.0.2 -Flask-BabelEx==0.9.3 -Flask-Compress==1.4.0 -Flask-Gravatar==0.4.2 -Flask-Login==0.4.1 -Flask-Mail==0.9.1 -Flask-Migrate==2.1.1 -Flask-Paranoid==0.2.0 -Flask-Principal==0.4.0 -Flask-Security==1.7.5 -Flask-SQLAlchemy==2.1 -Flask-WTF==0.14.2 -future==0.18.2 -gevent==20.5.0 -gevent-websocket==0.10.1 -greenlet==0.4.15 gunicorn==20.0.4 -httpie==0.9.8 -httplib2==0.11.3 -hupper==1.9.1 -idna==2.6 -importlib-metadata==1.6.0 -ipython==5.8.0 -ipython-genutils==0.2.0 -itsdangerous==0.24 Jinja2==2.11.1 -jinja2-time==0.2.0 -jmespath==0.9.4 -lockfile==0.12.2 -Mako==1.0.7 -MarkupSafe==1.1.1 -netaddr==0.7.19 -ntlm-auth==1.1.0 -olefile==0.46 -paramiko==2.4.2 -passlib==1.7.1 -PasteDeploy==2.1.0 -pexpect==4.6.0 -pickleshare==0.7.5 -Pillow==7.0.0 -plaster==1.0 -plaster-pastedeploy==0.7 -poyo==0.5.0 -prompt-toolkit==1.0.15 -psutil==5.5.1 -psycopg2==2.8.5 -pyasn1==0.4.2 -pycairo==1.16.2 -pycrypto==2.6.1 -pycurl==7.43.0.2 -Pygments==2.3.1 -PyGObject==3.30.4 -pyinotify==0.9.6 -pykerberos==1.1.14 -PyNaCl==1.3.0 -pyOpenSSL==19.0.0 -pyramid==1.10.4 -PySimpleSOAP==1.16.2 -pyStrich==0.8 -python-apt==1.8.4.1 -python-dateutil==2.8.1 -python-debian==0.1.35 -python-debianbts==2.8.2 -python-editor==1.0.3 -pytz==2019.1 -pywinrm==0.3.0 -PyYAML==3.13 -reportbug===7.5.3-deb10u1 -reportlab==3.5.13 -requests==2.22.0 -requests-kerberos==0.11.0 -requests-ntlm==1.1.0 -scour==0.37 -simplegeneric==0.8.1 -simplejson==3.16.0 -six==1.12.0 -SQLAlchemy>=1.3.1 -sqlparse==0.2.4 -sshtunnel==0.1.4 -traitlets==4.3.2 -translationstring==1.3 -unattended-upgrades==0.1 -urllib3==1.24.1 -venusian==3.0.0 -virtualenv==16.7.9 -wcwidth==0.1.7 -WebOb==1.8.6 -Werkzeug==0.16.0 -whichcraft==0.6.1 -wsgigzip==0.1.4 -WTForms==2.2.1 -xmltodict==0.11.0 -yq==2.10.0 -zipp==3.1.0 -zope.deprecation==4.4.0 -zope.interface==4.7.1 +dataset==1.3.1