<?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 Kavitha Madhavaraj on Medium]]></title>
        <description><![CDATA[Stories by Kavitha Madhavaraj on Medium]]></description>
        <link>https://medium.com/@kavitha.madhavaraj?source=rss-9732b14e450d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mXvtRHQhuAUXw71WIz_yJA.jpeg</url>
            <title>Stories by Kavitha Madhavaraj on Medium</title>
            <link>https://medium.com/@kavitha.madhavaraj?source=rss-9732b14e450d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 01:13:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavitha.madhavaraj/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[Deploy a NodeJS app to Heroku in minutes]]></title>
            <link>https://medium.com/@kavitha.madhavaraj/deploy-a-nodejs-app-to-heroku-in-minutes-53f060d6cad1?source=rss-9732b14e450d------2</link>
            <guid isPermaLink="false">https://medium.com/p/53f060d6cad1</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[installation]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Kavitha Madhavaraj]]></dc:creator>
            <pubDate>Fri, 18 May 2018 06:08:21 GMT</pubDate>
            <atom:updated>2018-05-18T06:51:52.139Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ujanc5WQi95y9lcp_LC2cw.jpeg" /></figure><p>Heroku is a cloud based platform using the container approach (called as dyno) where you deploy and run apps with integrated data services and powerful add-ons.</p><blockquote><strong><em>Did you know?</em></strong> <em>Heroku is a Japanese word meaning wider or bigger.</em></blockquote><p>An application’s activities including deploying, configuring, scaling, managing may sound really scary, but all of that can be done in very simple way in Heroku. So that developers can only focus on what’s most important: building great apps that delight and engage customers :)</p><p>Heroku supports these 8 languages : <em>Node.js, Ruby, Python, PHP, Java, Go, Scala, Clojure</em></p><p>For detailed understanding of what Heroku is : <a href="https://www.heroku.com/what"><em>https://www.heroku.com/what</em></a></p><h4><strong>What to expect ?</strong></h4><p>By the end of this article, you get your first NodeJs app hosted on Heroku from a linux based environment.</p><h4>Create an account</h4><p>Use this link <a href="https://signup.heroku.com/login"><em>https://signup.heroku.com/login</em></a> to Sign up and login into Heroku. If this is your first time on Heroku, you will be welcomed by this screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlbL4gMXvTbIVosgOBwRWA.png" /><figcaption>Heroku Welcome Screen</figcaption></figure><p>Choose Node.js and you will be redirected to a page saying <em>“Getting Started on Heroku with Node.js”</em>. I will summarise here what needs to be done to get the app up and running.</p><h4>Installations</h4><p>Following are not really needed for getting your first app on Heroku. However you will need these if you want to make code changes to be deployed on Heroku or to run the app locally. So let’s get this installed in our machine</p><p>node-js : <a href="https://nodejs.org/en/"><em>https://nodejs.org/en/</em></a></p><p>git : <a href="http://guides.beanstalkapp.com/version-control/git-on-linux.html"><em>http://guides.beanstalkapp.com/version-control/git-on-linux.html</em></a></p><h4>Some command line magics</h4><p>The following commands will setup the Heroku CLI in your system</p><p><em>&gt;&gt; sudo add-apt-repository “deb https://cli-assets.heroku.com/branches/stable/apt ./”</em></p><p><em>&gt;&gt; curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -</em></p><p><em>&gt;&gt; sudo apt-get update</em></p><p><em>&gt;&gt; sudo apt-get install heroku</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bvZurnzpKLADjM5oCWOylg.png" /><figcaption>Installation Screen of Heroku</figcaption></figure><blockquote><strong>To confirm: </strong>“<em>heroku -v” command </em>will display the version of Heroku CLI installed. For example, the above command displays “heroku-cli/6.16.13-dbb9c23 (linux-x64) node-v9.11.1” in my machine.</blockquote><p>Login to heroku-cli by providing the details you used while registering</p><p><em>&gt;&gt; heroku login</em></p><p>After successful login you can go ahead and create a NodeJS app. To keep it simple, I am cloning a sample app from Heroku’s official repository.</p><p><em>&gt;&gt; git clone https://github.com/heroku/node-js-getting-started.git<br>&gt;&gt; cd node-js-getting-started</em></p><blockquote><strong><em>Mandatory file: </em></strong><em>If you notice here, a file called ‘Procfile’ is present in the root directory of the cloned app. This file contains the configurations necessary to deploy the app on to Heroku dynos. If you are deploying your own app don’t forget to add this file.</em></blockquote><p>To deploy your app, first you need to create an app in Heroku. When you create an app, a git remote (called Heroku) is created in the background and is linked to your local git repository. Heroku will generate an app with the name you specify. If you don’t specify it, don’t panic if you found some strangely named app sitting in your Heroku dashboard. It is indeed your app but with a randomly generated name. So, let’s create an app using this command.</p><p>&gt;&gt; <em>heroku create your_app_name_goes_here</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*Y8I3FNeP2KzgjIV4lEwyDQ.png" /><figcaption>Creating Heroku App</figcaption></figure><p>Here comes the final and important step, <strong>Deployment</strong>. It’s done in a jiffy with the following command.</p><p><em>&gt;&gt; git push heroku master</em></p><p>We just uploaded our app to Heroku. Yes :) Heroku CLI did all the magic for you!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*Gyif0tm4IKY2_CvFZC8rqQ.png" /><figcaption>Deployment Screen</figcaption></figure><p>You can view your app in the browser by issuing</p><p>&gt;&gt; <em>heroku open</em></p><p>The sample app we cloned from official Git Repo will open up like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgfyL7dFE4tATCsngjjSRQ.jpeg" /></figure><p>That’s all you have to do to deploy your app in Heroku. Well done :)</p><p>Now after making code changes in local and if you want it be reflected in the app running on Heroku, use these.</p><p><em>&gt;&gt; git add .</em></p><p><em>&gt;&gt; git commit -m “Some commit messsage”</em></p><p><em>&gt;&gt; git push heroku master</em></p><blockquote><strong>Where do I see logs?:</strong> “heroku logs — tail” will display recent logs.</blockquote><p>Most of the technical documentations are always serious and boring. But, Heroku has got interactive and user friendly documentation to my surprise. Let me know if this helped you. Thanks for your time :)</p><blockquote><strong>Official Documentation:</strong> <a href="https://devcenter.heroku.com/categories/language-support">https://devcenter.heroku.com/categories/language-support</a>.</blockquote><p>This is my very first technical article, I’d be more than happy to hear out your suggestions and comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53f060d6cad1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>