add some infra for running your own woodwind
This commit is contained in:
parent
9a0cdb6925
commit
7fdd18b294
3 changed files with 25 additions and 2 deletions
9
init_db.py
Executable file
9
init_db.py
Executable 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()
|
|
@ -1,8 +1,9 @@
|
|||
[uwsgi]
|
||||
master=true
|
||||
processes=1
|
||||
socket=/tmp/woodwind.sock
|
||||
chmod-socket=666
|
||||
#socket=/tmp/woodwind.sock
|
||||
#chmod-socket=666
|
||||
http-socket=:3000
|
||||
module=woodwind.wsgi
|
||||
import=timers
|
||||
attach-daemon=rqworker high low
|
||||
|
|
13
woodwind.cfg.template
Normal file
13
woodwind.cfg.template
Normal 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 = '...'
|
Loading…
Add table
Add a link
Reference in a new issue