vibora
vibora copied to clipboard
cannot run hosting on herokuapp?
i've try create Rest API using this framework and using herokuapp as hosting
iam using Vibora 0.0.6 and gunicorn 19.9.0
i just write simple tester look like this
from vibora import Vibora
from vibora.responses import JsonResponse
import os, sys
app = Vibora()
@app.route("/", methods=["GET"])
async def main():
data = {'hallo':"yeah"}
return JsonResponse(data)
app.run(port=int(os.environ.get("PORT")),
debug=True)
on Procfile
web: gunicorn test.app webserver 0.0.0.0:5000 --log-file=- --worker-class=gevent --workers=8 --threads=8 --preload
idk why, but this always returning code 503. okay maybe i've wrong on my code or something
i try run on local, and this always loading after i opened my local url so slow to returning output after many refreshed
thanks before for answering im new in python and vibora
I just discovered vibora, but since it's an asynchronous framework, it can't be compatible with gunicorn which is WSGI compliant (i.e. synchronous).
I can not tell you much more, because of my very small knowledge of vibora, but I found this documentation that confirms what I just said: https://docs.vibora.io/deploy
Good luck with deployment, and don't hesitate to improve the documentation. I say so even though I'm not at all involved in the vibora project.
I just discovered vibora, but since it's an asynchronous framework, it can't be compatible with gunicorn which is WSGI compliant (i.e. synchronous).
I can not tell you much more, because of my very small knowledge of vibora, but I found this documentation that confirms what I just said: https://docs.vibora.io/deploy
Good luck with deployment, and don't hesitate to improve the documentation. I say so even though I'm not at all involved in the vibora project.
i have read that's documentation as well as i can, ok lets say this vibora not compatible with Gunicorn so change this to normal web but my problem not solved
I don't use Heroku either, but you may have a look to:
- https://github.com/michaelkrukov/heroku-python-script
- https://stackoverflow.com/questions/39139165/running-simple-python-script-continuously-on-heroku
- https://devcenter.heroku.com/articles/getting-started-with-python#define-a-procfile
- https://docs.vibora.io/ with the
python3 anything.py
Maybe it helps. If so, post here your solution, that'll help others.
I don't use Heroku either, but you may have a look to:
- https://github.com/michaelkrukov/heroku-python-script
- https://stackoverflow.com/questions/39139165/running-simple-python-script-continuously-on-heroku
- https://devcenter.heroku.com/articles/getting-started-with-python#define-a-procfile
- https://docs.vibora.io/ with the
python3 anything.py
Maybe it helps. If so, post here your solution, that'll help others.
thanks for that more, but before im using vibora i use Flask and heroku as well but running so slow for my client.
i'll trying anything and wait anything for my issue, so glad if i found on this thread