CONTENTS
Source code for https://blog.ihasy.com
Ihasy.com is a personal blog site.
Fork and send pull request.
git clone https://github.com/ddong8/ihasy.git
-
install all required modules:
shell> pip install -r requirements.txt
-
create database and then execute sql file in dbstructure/
shell> mysql -u root -p mysql> create database ihasy; mysql> exit shell> mysql -u root -p --database=ihasy < dbstructure/ihasy.sql shell> mysql -u root -p --database=ihasy < dbstructure/ihasy_data.sql
-
set your mysql user/password and smtp server config in
application.py
andlib/sendmail.py
. -
check above, using
python application.py
to start server.shell> python application.py --port=9001 --mysql_database=ihasy --mysql_host=localhost --mysql_password=YOURPASSWORD --mysql_user=YOURUSERNAME
You need to know a little of supervisor and nginx, all config files are available in conf/