diff --git a/Procfile b/Procfile index d5e2bb1..f89c536 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: python server.py \ No newline at end of file +web: gunicorn server:app \ No newline at end of file diff --git a/server.py b/server.py index 08758db..fcdc993 100644 --- a/server.py +++ b/server.py @@ -1,5 +1,4 @@ from flask import Flask, jsonify -from flask_common import Common import requests @@ -94,7 +93,4 @@ def get_exchange(coin1, coin2): 'ticker': c.ticker, 'value': c.value(coin2), 'value.coin': coin2 - }) - -if __name__ == "__main__": - common.serve() \ No newline at end of file + }) \ No newline at end of file