-
create virtual environment
- ./create_venv.sh
-
create mysql database named
mpwechatrss
with utf-8 encoding -
cp instance/config.py.example instance/config.py
-
fill in the SECRET_KEY, BIND_URL, PROXY_URL, INFORM_URL, DB_USER, DB_PSWD, DB_HOST in
instance/config.py
-
initial database(with venv activated)
- python manage.py db init
- python manage.py db migrate
- python manage.py db upgrade
-
install rabbitmq
-
run celery(with venv activated)
- celery -A celary.celery worker -B -l info
-
run server(with venv activated)
-
change SERVER_NAME in
config/__init__.py
(optional) -
./start.sh
-