Skip to content
portal for izyou website
HTML Python JavaScript CSS Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
docs
portal
README.md
config.py
db_setup.py
main.py
requires.txt
setup.sh

README.md

izyo pro

###dependcies

$ pip install -r requires.txt

$ pip intall flask-login==0.2.11

###create database izyou via psql client

###install python connector for mysql (/etc/my.cnf) $ pip install mysql-python

###create tables and initial data for database izyou $ python db_setup.py


debug deploy

$ python main.py

release deploy, with nginx + uwsgi

$ sudo vi /etc/nginx/nginx.conf

add server config, notice the address difference:

server {
    listen       80;
    server_name zhiyijia.cn www.zhiyijia.cn zhyjia.com www.zhyjia.com;
location / {
        include uwsgi_params;
        uwsgi_pass  127.0.0.1:8080;
    }

}

uwsgi_pass needs to be same as the nohup uwsgi socket and the port in main.py

$ nohup uwsgi --socket 127.0.0.1:8080 --wsgi-file main.py --callable app --processes 1 -H mentalgames &

You can’t perform that action at this time.