title: How to run UVICORN in Heroku?
body: <p>So I have figured out how to code a fastAPI and I am ready to deploy my script to heroku that I have worked with fastAPI (<a href="https://fastapi.tiangolo.com/" rel="noreferrer">https://fastapi.tiangolo.com/</a>) however the problem is that when I do a request to heroku it will just return:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Internal Server Error&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;&lt;p&gt;Internal Server Error&lt;/p&gt;&lt;/h1&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Which means the script is on but I can't see the error and locally it works totally fine I would say.</p>
  
  <p>I am not able to see any logs where the problem is however I would say my problem might be that I am not sure if my <strong>procfile</strong> is correct because I haven't edited it at all and I am quite new at this and I am here to ask how I am able to run my fastapi script in heroku?</p>
  
  <p>What I know is that to be able to run the script, you have to use command <code>uvicorn main:app --reload</code> and it won't work if you do etc <code>py main.py</code> What am I doing wrong?</p>