add some infra for running your own woodwind

This commit is contained in:
Kyle Mahan 2015-08-14 08:14:37 -07:00
parent 9a0cdb6925
commit 7fdd18b294
3 changed files with 25 additions and 2 deletions

9
init_db.py Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env python
from woodwind import create_app
from woodwind.extensions import db
app = create_app()
with app.app_context():
db.create_all()

View file

@ -1,8 +1,9 @@
[uwsgi] [uwsgi]
master=true master=true
processes=1 processes=1
socket=/tmp/woodwind.sock #socket=/tmp/woodwind.sock
chmod-socket=666 #chmod-socket=666
http-socket=:3000
module=woodwind.wsgi module=woodwind.wsgi
import=timers import=timers
attach-daemon=rqworker high low attach-daemon=rqworker high low

13
woodwind.cfg.template Normal file
View file

@ -0,0 +1,13 @@
import os
DEBUG = True
# do not intercept redirects when using debug toolbar
DEBUG_TB_INTERCEPT_REDIRECTS = False
SECRET_KEY = 'super secret key'
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.getcwd() + '/db.sqlite'
PER_PAGE = 100
# client secret and key for fetch twitter contexts from granary.appspot.com
TWITTER_AU_KEY = '...'
TWITTER_AU_SECRET = '...'