Deploy Flask App
I have a flask application written in flask, how can I run it in Dokploy.
18 Replies
1. pip freeze > requirements.txt
2. You need main.py
okay what type of build file would this be?
All builders needs requirements because in requirements you have a list of packages
okay
I am trying to deploy it now but it is not working here is what my github looks like and dokploy. But I click deploy and it says docker deployed but after that it just instantly ends.


* Serving Flask app 'main'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:3000
Press CTRL+C to quit
It says this and I connect it to the domain but it does not work when I go to that domain.
It responds with bad gateway.
nextjs apps work okay. Flask does not.
Probably there is missing something in your code, I remember tried to deploy a django project https://github.com/Dokploy/django-demo/tree/demo-2 you can check there I remember was running fine, I guess the same idea could be similar to flask
GitHub
GitHub - Dokploy/django-demo at demo-2
Contribute to Dokploy/django-demo development by creating an account on GitHub.
full chat of the discussion: https://discord.com/channels/1234073262418563112/1235078349714493500
thank you I will try this.
got this error when trying to deploy:

use https://
you are using the ssh way
if you use the [email protected] you need to use ssh key in your account
I am still getting an error.
Itโs correct because nixpacks canโt see installation directory
Firstly you need to copy only mysite
And this directory try to install
correct,
you should this
URL: https://github.com/Dokploy/django-demo.git
Branch: demo-2
directory: /django-main
GitHub
GitHub - Dokploy/django-demo
Contribute to Dokploy/django-demo development by creating an account on GitHub.


My project with flask is working. Can I see you project all configuration files to help you fast. You can write on DM
Yes I can do that.