Ask coding questions

← Back to all posts
Not able to undrstand my my flask app is not running
A036Nikhil (0)

I don't understand what it means

Wumi4 (542)

By default, Repl runs a file called when you click on the Run button. You can use the Shell tab to use shell to run your program, or create a file called .replit and type:

run="python3 link/to/your/"

Then run the program again.

A036Nikhil (0)

@Wumi4 how I will find address of my file. And I am not able to run my file using shell either.

Wumi4 (542)

@A036Nikhil Use:

run="python3 app/"

And what command do you do when you use the shell? Just curious.

A036Nikhil (0)

@Wumi4 used this command
$ export FLASK_APP=app


Wumi4 (542)

@A036Nikhil Bruh.

First, move the .replit file outside the folder app.
Second, if you use the shell, type:

python3 app/

That's all. If you still have no idea on how to do this, then I can't help you any further.

A036Nikhil (0)

@Wumi4 No worry! But I wonder why that command doesn't run?
But thanks, you really helped me. Now its running but I am confused about that command.