How to put a Flask app online
Normally, to expose a Flask app to the outside world, you have to rent a server, install Python on it, configure gunicorn and nginx, issue an SSL certificate, and keep an eye on the process so it does not crash. For a pet project or your first Flask site, that is a lot of fuss before anyone even sees the result.
Netrun takes that part away: you upload your code, the platform figures out on its own that it is Python with Flask, builds the project, and gives you a public HTTPS link. We handle the servers, the build, and restarts. Below is how to prepare your app and get it online in a few minutes.
List your dependencies in requirements.txt
Put a requirements.txt file next to your code with the list of libraries — at least Flask and gunicorn. Gunicorn is the production server that keeps your app running under load, since the built-in Flask server is not meant for the internet. You do not need to include the dependencies folder (venv) in the archive — Netrun installs everything itself from the list.
Listen on the port from an environment variable
Do not hardcode port 5000 in your code. Netrun assigns the app the right port through the PORT environment variable, and the app should read it — for example, port = int(os.environ.get("PORT", 5000)) — taking the value from that variable. Gunicorn also binds to this port when it starts. If the port is hardcoded, the link may not open.
Keep keys and tokens out of your code
Do not leave the Flask secret key, keys to external services, or the database connection string right in your files. Read them from environment variables via os.environ — Netrun asks for these values during setup and passes them into the app, so they are not stored in the code.
Upload the project to Netrun
Open your dashboard and upload the code: as a ZIP archive or by importing from a GitHub repository, including a private one. The platform detects on its own that it is Python with Flask and prepares the build — you do not need to specify the language separately.
Enter the secrets and publish
On the setup step, fill in the values the app expects from the environment — the secret key, tokens, the database connection string. Then start the deploy. The build progress and logs show in the dashboard in real time, so you can see exactly which step everything is at.
Check it at the link
Once the build reaches the ready status, open the link you were given — the app is already running over HTTPS. If something goes wrong, check the logs in the dashboard, and on a failure Netrun restarts the project automatically.
That is it: your Flask app lives online without renting a server, setting up nginx by hand, or fiddling with certificates. On the Free plan, one web project sleeps when idle and wakes on the first request — after a pause it opens a little slower. If the app needs to respond instantly and stay online all the time, a paid plan with no idle sleep is a good fit. Try Netrun.