|
||
---|---|---|
data | ||
static/css | ||
templates | ||
.gitignore | ||
LICENSE | ||
README.md | ||
schort.fcgi | ||
schort.py | ||
schort.wsgi |
schort - It's just is a tiny link shortener
Installation instructions:
- Clone this repo into e.g. /opt/schort
- Create a "data" folder inside the repo which is writable by the webserver
- Install requirements (see below)
- Configure your wsgi or fcgi server
- Configure your webserver that he talks to your wsgi/fcgi server
Requirements:
Module | Explanation |
---|---|
Flask | Flask handels all HTTP-stuff in this application |
sqlite3 | In gentoo this useflag needs to be set while compiling python3 |
µWSGI
The schort.wsgi file can be set as UWSGI_PROGRAM if you use uWSGI. Keep in mind, that the UWSGI_DIR needs to be set to the path where schort.py resists. This is because schort is not installed in a global scope. Since schort.wsgi imports schort.py it needs his workspace in the same folder.