knittingtools/README.md

33 wiersze
1.2 KiB
Markdown
Czysty Zwykły widok Historia

2017-05-07 14:45:45 +00:00
# knittingtools
KnittingTools is a simple web app written in Python. It currently supports two main features:
* A knitting calculator
* A punchcard generator
The app has been tested on Python version 2.7 with the following dependencies:
* cairocffi 0.7.2
* CairoSVG 1.0.22
* pycparser 2.17
* pyparsing 2.1.5
* svgwrite 1.1.8
2017-05-07 14:51:25 +00:00
To run the server:
* Clone this repo
* If you are installing to a Linux platform that supports chkconfig, copy `./bin/knittingtools-chkconfig` to the location appropriate for your flavor of Linux (usually /etc/rc.d/init.d).
2017-05-07 14:58:56 +00:00
* Edit the init script to reflect the appropriate locations for the lock file, python executable, server.py script and PID file.
* Note that the app has only been tested using the supplied virtual environment.
2017-05-07 14:51:25 +00:00
* Start, stop or restart the server using the following commands:
2017-05-07 14:52:15 +00:00
2017-05-07 14:51:59 +00:00
`sudo service knittingtools start`
2017-05-07 14:52:15 +00:00
2017-05-07 14:51:59 +00:00
`sudo service knittingtools stop`
2017-05-07 14:52:15 +00:00
2017-05-07 14:51:59 +00:00
`sudo service knittingtools restart`
2017-05-07 14:52:15 +00:00
2017-05-07 14:51:25 +00:00
* Use the following command to determine the server's current status:
2017-05-07 14:52:15 +00:00
2017-05-07 14:51:59 +00:00
`sudo service knittingtools status`
2017-05-07 14:55:57 +00:00
Access and error logs are written to `/var/log/knittingtools.log` and `/var/log/knittingtools.log` respectively. The log configuration can be modified by editing `logging.conf`.