Ask coding questions

← Back to all posts
How to run your file using Shelling?
A036Nikhil (0)

I tried running a simple flask app using shell via command "export FLASK_APP= app" but it's not working

Comments
hotnewtop
ruiwenge2 (1186)

just type python app/app.py

ruiwenge2 (1186)

hmm… maybe move the .replit file out of the app folder and change the run to python instead of python3 @A036Nikhil

ruiwenge2 (1186)

Wait a minute! You didn’t even run the application! You need to add this:

app.run(host=“0.0.0.0”, port=8080)

at the end of the app.py file
@A036Nikhil

A036Nikhil (0)

@ruiwenge2 Thanks Buddy! You give me hope to continue learning programming