|
5 years ago | |
---|---|---|
controllers | 5 years ago | |
migrations | 5 years ago | |
setup-data | 5 years ago | |
static | 5 years ago | |
templates | 5 years ago | |
texttable @ 0eb812be61 | 5 years ago | |
uploads | 5 years ago | |
.gitignore | 5 years ago | |
.gitmodules | 5 years ago | |
README.md | 5 years ago | |
barcode_utils.py | 5 years ago | |
config.py.sample | 5 years ago | |
crons.py | 5 years ago | |
dbseed.py | 5 years ago | |
forms.py | 5 years ago | |
models.py | 5 years ago | |
requirements.txt | 5 years ago | |
stockazng.py | 5 years ago | |
utils.py | 5 years ago |
Install PostgreSQL
Makes sure that encoding is/will be in UNICODE/UTF-8
-> https://wiki.archlinux.org/index.php/PostgreSQL#Change_default_encoding_of_new_databases_to_UTF-8
git clone http://dev.sigpipe.me/dashie/StockazNG
cd StockazNG
git submodule init
git submodule update
pip install --requirement requirements.txt --allow-external PIL --allow-unverified PIL
or apt-get install python-imaging python-pil # PIL is tricky with jpeg...
pip install psycopg2
cp config.py.sample config.py
$EDITOR config.py
python stockazng.py db upgrade
python stockazng.py db_seed
python stockazng.py mkdirs
python stockazng.py runserver # or whatever gunicorn whatever stuff
gunicorn -w 2 -b 127.0.0.1:8000 --error-logfile=errors.log --access-logfile=access.log --chdir=$PWD stockazng:app
*/5 * * * * cd ~/stockazng/ && python stockazng.py cron_cache > /dev/null
*/5 * * * * cd ~/stockazng/ && python stockazng.py cron_thumbs > /dev/null
If stuck on “Set all parts without tags to “untagged” for tags_slug”, runs :
And it should pass.