Skip to content

Commit

Permalink
Merged in deploy (pull request #1)
Browse files Browse the repository at this point in the history
Deploy
  • Loading branch information
Owen Cassidy committed Oct 26, 2015
2 parents 7e61b7d + f8234fb commit 6508a8c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 40 deletions.
8 changes: 0 additions & 8 deletions api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import model
import collections
from flask_oauthlib.client import OAuth, OAuthException
from reverse_proxy import *

oauth = OAuth()
facebook = oauth.remote_app('facebook',
Expand All @@ -24,13 +23,6 @@

app = Flask(__name__)
app.config.from_object('config')
# if you want to deploy the server, comment this line out:
app.config['SERVER_NAME'] = 'localhost:5000'
# and uncomment these two:
# app.config['SERVER_NAME'] = 'etymograph.com'
# app.wsgi_app = ReverseProxied(app.wsgi_app)
# and push it



@facebook.tokengetter
Expand Down
11 changes: 11 additions & 0 deletions etymograph.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[uwsgi]
module = api

master = true
processes = 5

socket = /opt/etymograph.sock
chmod-socket = 666
vacuum = true

die-on-term = true
32 changes: 0 additions & 32 deletions reverse_proxy.py

This file was deleted.

4 changes: 4 additions & 0 deletions wsgi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from api import app as application

if __name__ == "__main__":
application.run()

0 comments on commit 6508a8c

Please sign in to comment.