i've followed nicole white's tutorial http://nicolewhite.github.io/neo4j-flask/
everything worked locally, then, deployment on heroku i'm unable open app. following error:
2016-08-08t23:49:58.194942+00:00 app[web.1]: file "run.py", line 1, in <module> 2016-08-08t23:49:58.194985+00:00 app[web.1]: blog import app 2016-08-08t23:49:58.195012+00:00 app[web.1]: file "/app/blog/__init__.py", line 1, in <module> 2016-08-08t23:49:58.195054+00:00 app[web.1]: .views import app 2016-08-08t23:49:58.195118+00:00 app[web.1]: .models import user, get_todays_recent_posts 2016-08-08t23:49:58.194942+00:00 app[web.1]: file "run.py", line 1, in <module> 2016-08-08t23:49:58.195012+00:00 app[web.1]: file "/app/blog/__init__.py", line 1, in <module> 2016-08-08t23:49:58.195054+00:00 app[web.1]: .views import app 2016-08-08t23:49:58.195118+00:00 app[web.1]: .models import user, get_todays_recent_posts 2016-08-08t23:49:58.195184+00:00 app[web.1]: py2neo import graph, node, relationship, serviceroot 2016-08-08t23:49:58.272878+00:00 heroku[web.1]: process exited status 1
my run.py
is:
from blog import app import os port = int(os.environ.get('port', 5000)) app.secret_key = os.urandom(24) app.run(host='0.0.0.0', port=port)
the header of models.py
is:
from py2neo import graph, node, relationship, serviceroot passlib.hash import bcrypt datetime import datetime import os import uuid graphenedb_url = os.environ.get("graphenedb_url", "http://localhost:7474/") graph = serviceroot(graphenedb_url).graph
the header of views.py
is:
from .models import user, get_todays_recent_posts flask import flask, request, session, redirect, url_for, render_template, flash app = flask(__name__)
i hope me on this.
Comments
Post a Comment