<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ekpetchou Achille Ezoba</title>
    <description>The latest articles on DEV Community by Ekpetchou Achille Ezoba (@sahelescale).</description>
    <link>https://dev.to/sahelescale</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253689%2F5fc877e8-eed0-45ee-8680-ba7080a78a6f.png</url>
      <title>DEV Community: Ekpetchou Achille Ezoba</title>
      <link>https://dev.to/sahelescale</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sahelescale"/>
    <language>en</language>
    <item>
      <title>How to Deploy a Flask App Online for Free</title>
      <dc:creator>Ekpetchou Achille Ezoba</dc:creator>
      <pubDate>Thu, 19 Nov 2026 12:11:37 +0000</pubDate>
      <link>https://dev.to/sahelescale/how-to-deploy-a-flask-app-online-for-free-2ped</link>
      <guid>https://dev.to/sahelescale/how-to-deploy-a-flask-app-online-for-free-2ped</guid>
      <description>&lt;p&gt;You built a Flask app that works on your computer. Now you want other people to use it. Here is a simple, free way to put it online.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A working Flask app (even a very small one)&lt;/li&gt;
&lt;li&gt;A free GitHub account&lt;/li&gt;
&lt;li&gt;A free account on a hosting service such as Render&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Free plans change over time and have limits (for example, a free app may go to sleep after a period without visitors), so check the current terms on the hosting site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Prepare your project
&lt;/h2&gt;

&lt;p&gt;Your project folder should look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my-app/
  app.py
  requirements.txt
  templates/
  static/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is a minimal &lt;code&gt;app.py&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;flask&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;Flask&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Flask&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;__name__&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="nd"&gt;@app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;route&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;home&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;"Hello from my Flask app!"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: List your dependencies
&lt;/h2&gt;

&lt;p&gt;Create a file called &lt;code&gt;requirements.txt&lt;/code&gt; that names every package your app needs. At minimum:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flask
gunicorn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gunicorn is the production server that will run your app online. Flask's built-in server is only for testing on your computer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Upload your project to GitHub
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Create a new repository on GitHub.&lt;/li&gt;
&lt;li&gt;Upload your project files to it (you can drag and drop them in the browser).&lt;/li&gt;
&lt;li&gt;Do not upload passwords or secret keys. Keep those out of your code.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 4: Create the service on Render
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Sign up on Render and connect your GitHub account.&lt;/li&gt;
&lt;li&gt;Choose &lt;strong&gt;New&lt;/strong&gt;, then &lt;strong&gt;Web Service&lt;/strong&gt;, and select your repository.&lt;/li&gt;
&lt;li&gt;Set the &lt;strong&gt;Build Command&lt;/strong&gt; to &lt;code&gt;pip install -r requirements.txt&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Set the &lt;strong&gt;Start Command&lt;/strong&gt; to &lt;code&gt;gunicorn app:app&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Pick the free instance type and click deploy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The part &lt;code&gt;app:app&lt;/code&gt; means: the file &lt;code&gt;app.py&lt;/code&gt;, and the variable named &lt;code&gt;app&lt;/code&gt; inside it. If your file or variable has another name, change it here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: Open your app
&lt;/h2&gt;

&lt;p&gt;After a few minutes, Render shows a public link for your app. Open it in your browser and share it with a friend.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common problems
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build fails:&lt;/strong&gt; a package is missing from &lt;code&gt;requirements.txt&lt;/code&gt;. Add it and redeploy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Application error" on the page:&lt;/strong&gt; check the logs on Render. The start command is often the cause.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;App is slow on the first visit:&lt;/strong&gt; free apps often sleep when unused and wake up on the next visit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data disappears:&lt;/strong&gt; free hosting usually does not keep files you save on the server. Use a proper database for anything important.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A free alternative
&lt;/h2&gt;

&lt;p&gt;PythonAnywhere also offers a free plan that is friendly to beginners and made for Python web apps. It is a good option if you prefer a simple control panel to a GitHub-based setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Deploying your first app feels hard until you do it once. Start with a tiny project, get it online, and improve it from there.&lt;/p&gt;

&lt;p&gt;More beginner guides: &lt;a href="https://sahelescale.com" rel="noopener noreferrer"&gt;sahelescale.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>flask</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
