prod changes
This commit is contained in:
parent
fd022023b5
commit
1023ccacd8
5 changed files with 32 additions and 33 deletions
|
@ -1,6 +1,6 @@
|
|||
Flask==0.10.1
|
||||
Flask-Login==0.2.11
|
||||
Flask_Micropub==0.1.1
|
||||
Flask_Micropub==0.1.2
|
||||
Flask-SQLAlchemy==2.0
|
||||
Jinja2==2.7.3
|
||||
MarkupSafe==0.23
|
||||
|
@ -12,7 +12,7 @@ celery==3.1.17
|
|||
feedparser==5.1.3
|
||||
html5lib==0.999
|
||||
itsdangerous==0.24
|
||||
mf2py==0.2.1
|
||||
-e git+git@github.com:kylewm/mf2py.git#egg=mf2py
|
||||
mf2util==0.1.4
|
||||
redis==2.10.3
|
||||
requests==2.5.1
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
master=true
|
||||
processes=4
|
||||
threads=2
|
||||
socket=/tmp/uwsgi.sock
|
||||
socket=/tmp/woodwind.sock
|
||||
chmod-socket=666
|
||||
module=woodwind:wsgi
|
||||
module=woodwind.wsgi
|
||||
pidfile=/tmp/woodwind.pid
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
{% extends "base.jinja2" %}
|
||||
{% block header %}
|
||||
<form action="{{ url_for('.subscribe') }}" method="POST">
|
||||
<input type="text" id="origin" name="origin" placeholder="Feed URL" />
|
||||
<button type="submit" id="subscribe">Subscribe</button>
|
||||
</form>
|
||||
{% if current_user.is_authenticated() %}
|
||||
<form action="{{ url_for('.subscribe') }}" method="POST">
|
||||
<input type="text" id="origin" name="origin" placeholder="Feed URL" />
|
||||
<button type="submit" id="subscribe">Subscribe</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endblock header %}
|
||||
{% block body %}
|
||||
|
||||
|
@ -30,27 +32,29 @@
|
|||
<footer>
|
||||
<a href="{{ entry.permalink }}">{{ entry.published }}</a>
|
||||
|
||||
<form action="{{ current_user.micropub_endpoint }}" method="POST">
|
||||
<input type="hidden" name="access_token" value="{{current_user.access_token}}"/>
|
||||
<input type="hidden" name="h" value="entry"/>
|
||||
<input type="hidden" name="like-of" value="{{ entry.permalink }}"/>
|
||||
<button type="submit">Like</button>
|
||||
</form>
|
||||
<form action="{{ current_user.micropub_endpoint }}" method="POST">
|
||||
<input type="hidden" name="access_token" value="{{current_user.access_token}}"/>
|
||||
<input type="hidden" name="h" value="entry"/>
|
||||
<input type="hidden" name="like-of" value="{{ entry.permalink }}"/>
|
||||
<button type="submit">Like</button>
|
||||
</form>
|
||||
<!--
|
||||
<form action="{{ current_user.micropub_endpoint }}" method="POST">
|
||||
<input type="hidden" name="access_token" value="{{current_user.access_token}}"/>
|
||||
<input type="hidden" name="h" value="entry"/>
|
||||
<input type="hidden" name="in-reply-to" value="{{ entry.permalink }}"/>
|
||||
<textarea name="content"></textarea>
|
||||
<button type="submit">Reply</button>
|
||||
</form>
|
||||
-->
|
||||
|
||||
</footer>
|
||||
|
||||
<!--
|
||||
<form action="{{ current_user.micropub_endpoint }}" method="POST">
|
||||
<input type="hidden" name="access_token" value="{{current_user.access_token}}"/>
|
||||
<input type="hidden" name="h" value="entry"/>
|
||||
<input type="hidden" name="in-reply-to" value="{{ entry.permalink }}"/>
|
||||
<textarea name="content"></textarea>
|
||||
<button type="submit">Reply</button>
|
||||
</form>
|
||||
-->
|
||||
|
||||
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
<a href="{{ url_for(request.endpoint, page=page+1)}}">Older</a>
|
||||
{% if entries %}
|
||||
<a href="{{ url_for(request.endpoint, page=page+1)}}">Older</a>
|
||||
{% endif %}
|
||||
{% endblock body %}
|
||||
|
|
|
@ -30,15 +30,7 @@ def index():
|
|||
|
||||
@ui.route('/install')
|
||||
def install():
|
||||
db.drop_all()
|
||||
db.create_all()
|
||||
|
||||
user = User(domain='kylewm.com',)
|
||||
db.session.add(user)
|
||||
db.session.commit()
|
||||
|
||||
flask_login.login_user(user)
|
||||
|
||||
return 'Success!'
|
||||
|
||||
|
||||
|
|
3
woodwind/wsgi.py
Normal file
3
woodwind/wsgi.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from . import create_app
|
||||
|
||||
application = create_app()
|
Loading…
Add table
Add a link
Reference in a new issue