Deploying Flask App for Telegram

The code provided in the video is for Linux.
gunicorn does not work for windows.
Please provide the code and steps for windows.

hey @pgarg ,
you don’t need to install gunicorn on windows.
If you are deploying it on heroku , it itself gunicorn installed . Just use your github repo to deploy your code.

It will work.
Thank You and Happy Learning :slightly_smiling_face: .

That means I don’t need to create the files Procfile ,runtime.txt, requirements.txt?

you do everything the same as it is
but just dont install gunicorn on your system

Heroku have it as default and if by chance gives any error about this, you can download it there itself using the console available on dashboard to run command.

procfile contains command web gunicorn app:app
and when I run the command gunicorn app:app it gives no module named fcntl
and also the file is created using vi command

can you share me a link to your github repo , it will be easier for me to understand from there.

I am not able to create it yet
because while following the steps as I installed heroku CLI, it gives
‘heroku’ is not recognized as an internal or external command,operable program or batch file.
image
but if I run directly
image
it works

I have installed heroku in D drive, Is it because of that

yes, if the heroku path is not saved in environment variables then , you can access it only from the location where is downloaded.

But as you are on windows , then i would suggest you to go for github , its more easier .
Although, it is currently the same thing whether to use git or heroku.

Now I installed it in C drive but still not working
I am not much familar with git

try one this, add the path of heroku.exe to environment paths and then try

image
already there

what command did you tried

I just wrote ,
heroku

do one thing , just re install heroku
in any directory that you want .
while installing , just confirm that there are 3 options available and are checked.
There will be 1 option add to path … just let me know if all these 3 are checked.

image

Okay.
Yeah continue installing.

done, still the same

Did you downloaded 32 bit Or 64 bit heroku cli.

I downloaded 64 bit cli