<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sai Satwik on Medium]]></title>
        <description><![CDATA[Stories by Sai Satwik on Medium]]></description>
        <link>https://medium.com/@saisatwik99?source=rss-7f3b50d24272------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*G3XmXe-3yJaj5Ojr</url>
            <title>Stories by Sai Satwik on Medium</title>
            <link>https://medium.com/@saisatwik99?source=rss-7f3b50d24272------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:46:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saisatwik99/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to Deploy Node.js app with Heroku]]></title>
            <link>https://medium.com/@saisatwik99/how-to-deploy-node-js-app-with-heroku-ebe8f955fba9?source=rss-7f3b50d24272------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebe8f955fba9</guid>
            <dc:creator><![CDATA[Sai Satwik]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 11:25:03 GMT</pubDate>
            <atom:updated>2020-10-06T11:25:03.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oEGCeRdF3CqotDOJJt2eWg.png" /></figure><p>I recently created a small app using Node.js. Then, we deployed the app on Heroku, and I was so impressed by the blazing-fast experience. Here are the few simple steps to follow to deploy your Node.js application:</p><p><strong>Prerequisite:</strong> <a href="https://devcenter.heroku.com/articles/heroku-cli#download-and-install">Heroku CLI</a>, Git Bash.</p><h3>1. Login to Heroku</h3><p>In your terminal run the following command. Make sure that you have in the right directory that you want to deploy. By running this command you can login to your Heroku account using your credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*wg3GNKahjK7qPhOVbh69Mw.jpeg" /></figure><h3>2. Initialize the repository with git</h3><p>If the repository is not initialized with git. Initialized it with git. and make sure that you have committed everything in that repository.</p><pre>$ git init</pre><p>This will initialize the repository with git.</p><pre>$ git add .</pre><p>This command will add every file and folder that is there in the following repository to the staging area.</p><pre>$ git commit -m “&lt;commit message&gt;”</pre><p>This command will commit the files in the staging area.</p><h3>3. Create the app on Heroku</h3><p>In your terminal, place yourself inside your app folder. Make sure everything is pushed to your GitHub or other remote repo before you begin.</p><p>Run the command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*aIaSNdi-sXiyAMlCPFB1PA.jpeg" /></figure><p>By running this command, a git remote is created associated with your local repository. This also generates a random name and URL(where the app is going to be deployed) for your app.</p><h3>4. Tell Heroku to run “node app.js”</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*3reytWL0iPlEgOdSnBHCmw.jpeg" /></figure><p>Then we need to add a script in our package.json file to tell Heroku to run node app.js. Just add the line &quot;start&quot;: &quot;node app.js” to your &quot;script&quot; object in your package.json: Make sure that the file is saved. Then you need to commit the file again (Just type 3rd command in step 3).</p><h3>5. Push the master</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*1NBbE-7eI1h_IN3BIrAUcw.jpeg" /></figure><p>If “git push heroku main” does not work try doing it with “git push heroku master”. It might not work with some devices. This command will push everything to the Heroku master repo.</p><pre>$ heroku logs</pre><p>By using this command, you will get the app’s most recent logs.</p><p>Hurray!! Now your app is deployed and you can check the app in the link that Heroku has provided. While pushing the application into Heroku you may get some error. Check the following steps carefully and try it again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebe8f955fba9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>