{"id":868,"date":"2019-07-15T10:04:26","date_gmt":"2019-07-15T10:04:26","guid":{"rendered":"https:\/\/studysection.com\/blog\/?p=868"},"modified":"2019-07-15T10:04:26","modified_gmt":"2019-07-15T10:04:26","slug":"heroku-platform-introduction","status":"publish","type":"post","link":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/","title":{"rendered":"Heroku Platform Introduction"},"content":{"rendered":"<p><strong>Heroku Platform<\/strong><br \/>\nToday, we have a number of options for cloud web hosting services to run the apps. Heroku is one of them. Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud. You can deploy, run and manage applications written in open languages and frameworks such as Ruby, Node.js, Java, etc. This product is based on AWS and is vastly different from the Elastic Compute Cloud (AWS).<\/p>\n<p><strong>Difference between AWS and Heroku:<\/strong><\/p>\n<ol>\n<li>Concept:\n<ul>\n<li>AWS requires you to take care of setting up your load balancer(s), installing the right software stack on your EC2 instances, configuring your databases, and so on.<\/li>\n<li>Heroku handles the infrastructure operations for you. So you don\u2019t need to worry about the different components to build up your infrastructure (load balancers, machines, etc.).<\/li>\n<\/ul>\n<\/li>\n<li>Service-owner:\n<ul>\n<li>AWS- amazon.com.<\/li>\n<li>Heroku- salesforce.com<\/li>\n<\/ul>\n<\/li>\n<li>Hosted On:\n<ul>\n<li>AWS- Proprietary servers.<\/li>\n<li>Heroku- AWS servers<\/li>\n<\/ul>\n<\/li>\n<li>Programming language support:\n<ul>\n<li>AWS supports  Ruby, Java, PHP, Python, Node.js, .NET, Go, Docker.<\/li>\n<li>Heroku supports Ruby, Java, PHP, Python, Node.js, Go, Scala, Clojure.<\/li>\n<\/ul>\n<\/li>\n<li>Categories of clients:\n<ul>\n<li>AWS &#8211; Startups, Medium Businesses, and Large Enterprises.<\/li>\n<li>Heroku &#8211; Freelancers, Startups, Medium Businesses, and Large Enterprises.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>Heroku Advantages:<\/strong><\/p>\n<ul>\n<li>Cost-efficiency (you are charged only for the number of resources you use)<\/li>\n<li>Provides plenty of assistance services<\/li>\n<li>Dynamic scaling<\/li>\n<li>Rapid testing and implementation of apps<\/li>\n<li>Emphasis on app development instead of supplementary tasks (maintain, upgrade, or support infrastructure)<\/li>\n<li>Allows easy migration to the hybrid model<\/li>\n<li>Integrated web services and databases<\/li>\n<\/ul>\n<p><strong>Heroku Disadvantages:<\/strong><\/p>\n<ul>\n<li>Information is stored off-site, which is not appropriate for certain types of businesses.<\/li>\n<li>Though the model is cost-efficient, do not expect a low budget solution. A good set of services may be quite pricey.<\/li>\n<li>Lack of control over load balancing and scaling, that can lead to bottlenecks in the long run.<\/li>\n<\/ul>\n<p><strong>Heroku CLI and Deployment:<\/strong><br \/>\nRun the following command on the terminal to install <a href=\"https:\/\/www.studysection.com\/heroku-platform-foundation\" style=\"color:blue\">Heroku<\/a> on your machine:<\/p>\n<pre>curl https:\/\/cli-assets.heroku.com\/install-ubuntu.sh | sh<\/pre>\n<p>You can verify the installation by running the following command:<\/p>\n<pre>heroku --version<\/pre>\n<p><strong>Login Into Heroku:<\/strong><br \/>\n \u201cheroku login\u201d command is used to login into the Heroku. When you execute this command, you will be redirected to your browser after pressing any key on the prompt screen. After this, you will automatically log in.<\/p>\n<p><strong>Create Heroku application:<\/strong><br \/>\nYou can create your Heroku application by executing it:<\/p>\n<pre>heroku create<\/pre>\n<p><strong>Deployment with git:<\/strong><br \/>\nMany developers use git to manage source code versioning. The Heroku platform uses Git as the primary means for deploying applications (there are other ways to transport your source code to Heroku, including via an API). Before deploying your app to Heroku, you will have to initialize a local Git repository and commit your application code to it. To deploy your app to Heroku, type the following command:<\/p>\n<pre>git push heroku master<\/pre>\n<p>When you want to deploy your latest committed code to Heroku, you will always type the same command.<\/p>\n<table>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td>heroku create<\/td>\n<td>Create heroku application<\/td>\n<\/tr>\n<tr>\n<td>heroku info<\/td>\n<td>Describe your app information<\/td>\n<\/tr>\n<tr>\n<td>heroku open<\/td>\n<td>Open you app in browser<\/td>\n<\/tr>\n<tr>\n<td>heroku ps<\/td>\n<td>Show state of your app<\/td>\n<\/tr>\n<tr>\n<td>heroku logs<\/td>\n<td>Show logs of your app<\/td>\n<\/tr>\n<tr>\n<td>heroku maintenance:on<br \/>\nheroku maintenance:off<\/td>\n<td>On\/Off Maintenance mode<\/td>\n<\/tr>\n<tr>\n<td>heroku db:pull<br \/>\nheroku db:push<\/td>\n<td>Pull\/Push the database<\/td>\n<\/tr>\n<\/table>\n<p><strong>Key Features:<\/strong><\/p>\n<ul>\n<li>Ability to roll back your database or code in no time.<\/li>\n<li>Fully manageable runtime environment with smart containers (dynos) system.<\/li>\n<li>Consistent GitHub integration.<\/li>\n<li>Manual horizontal and vertical scaling.<\/li>\n<li>Onboard app monitoring system to keep track of metrics, like response time, throughput, memory, etc.<\/li>\n<\/ul>\n<table>\n<tr>\n<th>Heroku is the option for:<\/th>\n<th>AWS is the option for:<\/th>\n<\/tr>\n<tr>\n<td>Startups.<\/td>\n<td>Those who have already worked with Amazon web products.<\/td>\n<\/tr>\n<tr>\n<td>You need to deploy and test a Minimum Viable Product.<\/td>\n<td>You need infrastructure flexibility from the first deployment of your application.<\/td>\n<\/tr>\n<tr>\n<td>You can\u2019t afford a DevOps engineer (or engineers).<\/td>\n<td>You can afford a DevOps engineer or several DevOps engineers to manage the infrastructure.<\/td>\n<\/tr>\n<tr>\n<td>Those who prefer dealing with creating an app rather than devoting yourself to infrastructure mundane tasks.<\/td>\n<td>Those who want to avoid numerous tasks related to app deployment.<\/td>\n<\/tr>\n<tr>\n<td>Your project doesn\u2019t demand that many computational resources.<\/td>\n<td>Your project requiring huge computing power.<\/td>\n<\/tr>\n<tr>\n<td>You need to improve your application quickly after getting feedback from users.<\/td>\n<td>You\u2019re ready to spend more time deploying new versions of your app.<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Heroku Platform Today, we have a number of options for cloud web hosting services to run the apps. Heroku is<\/p>\n","protected":false},"author":1,"featured_media":871,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[158,159,160,161,156,39,157],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>StudySection Blog - Heroku Platform - Introduction<\/title>\n<meta name=\"description\" content=\"Heroku is a cloud web hosting service used to run the apps. Heroku enables developers to build, run, and operate applications entirely in the cloud.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"StudySection Blog - Heroku Platform - Introduction\" \/>\n<meta property=\"og:description\" content=\"Heroku is a cloud web hosting service used to run the apps. Heroku enables developers to build, run, and operate applications entirely in the cloud.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog Posts on famous people, innovations and educational topics\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/studysection\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-15T10:04:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2019\/07\/heroku-blog.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"160\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin-studysection-blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@studysection\" \/>\n<meta name=\"twitter:site\" content=\"@studysection\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin-studysection-blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\"},\"author\":{\"name\":\"admin-studysection-blog\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\"},\"headline\":\"Heroku Platform Introduction\",\"datePublished\":\"2019-07-15T10:04:26+00:00\",\"dateModified\":\"2019-07-15T10:04:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\"},\"wordCount\":707,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"keywords\":[\"Advantages\",\"Commands\",\"disadvantages\",\"features\",\"Heroku\",\"introduction\",\"Platform\"],\"articleSection\":[\"Learn and Grow\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\",\"url\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\",\"name\":\"StudySection Blog - Heroku Platform - Introduction\",\"isPartOf\":{\"@id\":\"https:\/\/studysection.com\/blog\/#website\"},\"datePublished\":\"2019-07-15T10:04:26+00:00\",\"dateModified\":\"2019-07-15T10:04:26+00:00\",\"description\":\"Heroku is a cloud web hosting service used to run the apps. Heroku enables developers to build, run, and operate applications entirely in the cloud.\",\"breadcrumb\":{\"@id\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/studysection.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Heroku Platform Introduction\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/studysection.com\/blog\/#website\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"name\":\"Blog Posts on famous people, innovations and educational topics\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/studysection.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/studysection.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/studysection.com\/blog\/#organization\",\"name\":\"StudySection\",\"url\":\"https:\/\/studysection.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"contentUrl\":\"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png\",\"width\":920,\"height\":440,\"caption\":\"StudySection\"},\"image\":{\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/studysection\",\"https:\/\/twitter.com\/studysection\",\"https:\/\/www.instagram.com\/study.section\/\",\"https:\/\/www.linkedin.com\/company\/studysection\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402\",\"name\":\"admin-studysection-blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g\",\"caption\":\"admin-studysection-blog\"},\"url\":\"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"StudySection Blog - Heroku Platform - Introduction","description":"Heroku is a cloud web hosting service used to run the apps. Heroku enables developers to build, run, and operate applications entirely in the cloud.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/","og_locale":"en_US","og_type":"article","og_title":"StudySection Blog - Heroku Platform - Introduction","og_description":"Heroku is a cloud web hosting service used to run the apps. Heroku enables developers to build, run, and operate applications entirely in the cloud.","og_url":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/","og_site_name":"Blog Posts on famous people, innovations and educational topics","article_publisher":"https:\/\/www.facebook.com\/studysection","article_published_time":"2019-07-15T10:04:26+00:00","og_image":[{"width":300,"height":160,"url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2019\/07\/heroku-blog.png","type":"image\/png"}],"author":"admin-studysection-blog","twitter_card":"summary_large_image","twitter_creator":"@studysection","twitter_site":"@studysection","twitter_misc":{"Written by":"admin-studysection-blog","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#article","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/"},"author":{"name":"admin-studysection-blog","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402"},"headline":"Heroku Platform Introduction","datePublished":"2019-07-15T10:04:26+00:00","dateModified":"2019-07-15T10:04:26+00:00","mainEntityOfPage":{"@id":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/"},"wordCount":707,"commentCount":0,"publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"keywords":["Advantages","Commands","disadvantages","features","Heroku","introduction","Platform"],"articleSection":["Learn and Grow"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/","url":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/","name":"StudySection Blog - Heroku Platform - Introduction","isPartOf":{"@id":"https:\/\/studysection.com\/blog\/#website"},"datePublished":"2019-07-15T10:04:26+00:00","dateModified":"2019-07-15T10:04:26+00:00","description":"Heroku is a cloud web hosting service used to run the apps. Heroku enables developers to build, run, and operate applications entirely in the cloud.","breadcrumb":{"@id":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/studysection.com\/blog\/heroku-platform-introduction\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/studysection.com\/blog\/heroku-platform-introduction\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/studysection.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Heroku Platform Introduction"}]},{"@type":"WebSite","@id":"https:\/\/studysection.com\/blog\/#website","url":"https:\/\/studysection.com\/blog\/","name":"Blog Posts on famous people, innovations and educational topics","description":"","publisher":{"@id":"https:\/\/studysection.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/studysection.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/studysection.com\/blog\/#organization","name":"StudySection","url":"https:\/\/studysection.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","contentUrl":"https:\/\/studysection.com\/blog\/wp-content\/uploads\/2021\/10\/studySection-logo.png","width":920,"height":440,"caption":"StudySection"},"image":{"@id":"https:\/\/studysection.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/studysection","https:\/\/twitter.com\/studysection","https:\/\/www.instagram.com\/study.section\/","https:\/\/www.linkedin.com\/company\/studysection"]},{"@type":"Person","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/db367e2c29a12d1808fb1979edb3d402","name":"admin-studysection-blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/studysection.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/054ac87a6874df1932004239cd8eab36?s=96&d=mm&r=g","caption":"admin-studysection-blog"},"url":"https:\/\/studysection.com\/blog\/author\/admin-studysection-blog\/"}]}},"views":496,"_links":{"self":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/868"}],"collection":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/comments?post=868"}],"version-history":[{"count":17,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":888,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/posts\/868\/revisions\/888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media\/871"}],"wp:attachment":[{"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/media?parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/categories?post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/studysection.com\/blog\/wp-json\/wp\/v2\/tags?post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}