pulkithanda / voyager-hf

Voyager website: A space website that can be used as a template in the future for space-related topics.
https://voyager-website.herokuapp.com/
41 stars 44 forks source link

Fix - wrong reference to the route variable. #24

Closed saif-malik-01 closed 2 years ago

saif-malik-01 commented 2 years ago

It will get successfully deployed but whenever the user make a request it throws an error because it doesn't get right route variable.

pulkithanda commented 2 years ago

hmm why change the web: gunicorn run:run to app? Also, do elaborate on the error ill merge then. Also when I was trying to deploy it I faced many errors so simply changing run to app resolved it for you ?

saif-malik-01 commented 2 years ago

According to your code server will first find the file run and then find the route reference variable run. But in run file the route reference variable is app. So, it should be from :

web : gunicorn run:run

To :

web: gunicorn run:app

Then after it run properly on heroku. I tested.

pulkithanda commented 2 years ago

Ohk will try it out, merging it as of now. (btw if it helped you, please consider following me, and starring the repository, helps me as a maintainer and would help me in further projects too, thanks!)