Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Chen Wang
Chen Wang
7,371 Points

Any one can successfully deploy a flask project?

I spent a whole day to deploy a flask project, which is bug free when I test it locally.

However, it so hard to deploy it on a server.

The debug mode just doesn't work anymore. I google a lot and tried many methods, but they don't work.

I really need some help. Actually, if I just test a simple hello word flask program, it works.

But when I upload my whole project, it keeps saying 500 internal server error. I cannot trace the bug. This really despairs me!! Anyone can help me?

Guled Ahmed
Guled Ahmed
12,806 Points

I currently have a flask project I'm working on and it hasnt been deployed yet, but I did a little researching on this same topic of deploying a flask project out of curiousity a couple weeks ago. Continuing off of Sai's answer, I personally planned on using OpenShift to host my app (when its complete). There are a multiple services to try out. What service were you using when you were deploying your app?

1 Answer

Sai Kiran Dasika
PLUS
Sai Kiran Dasika
Courses Plus Student 7,278 Points

You might wanna try Heroku as your app hosting provider. They have tutorials on how to deploy Flask applications to Heroku's Servers.