Sunday, August 11, 2019

Heroku

Image result for heroku
What is Heroku used for?
Heroku is a container-based cloud Platform as a Service (PaaS). Developers use Heroku to deploy, manage, and scale modern apps. Our platform is elegant, flexible, and easy to use, offering developers the simplest path to getting their apps to market.

Why is Heroku free?
Heroku's free cloud services begin with the apps - apps which can be deployed to dynos - our lightweight Linux containers that are at the heart of the Heroku platform. When you sign up with Heroku, you automatically get a pool of free dyno hours to use for your apps. When your app runs, it consumes dyno hours.

 Heroku Buildpack
Buildpacks are composed of a set of scripts that will perform tasks such as retrieve dependencies or output generated assets or compiled code. If you are using a language that is officially supported by the Heroku platform, the build system will automatically detect which Heroku Buildpack is needed for the job.

The Heroku Platform
The Heroku network runs the customer's apps in virtual containers which execute on a reliable runtime environment, Heroku calls these containers Dynos. These Dynos can run code written in Node, Ruby, PHP, Go, Scala, Python, Java, Clojure. Heroku also provides custom buildpacks with which the developer can deploy apps in any other language. Heroku lets the developer scale the app instantly just by either increasing the number of dynos or by changing the type of dyno the app runs in.


How to install Heroku?
Run this from your terminal.
  1. sudo add-apt-repository "deb https://cli-assets.heroku.com/branches/stable/apt ./"
  2. curl -L https://cli-assets:heroku.com/apt/release.key | sudo apt-key add-
  3. sudo apt-get update
  4. sudo apt-get install heroku
Deploy your application to Heroku:
  • git init
  • git add .
  • git commit -m "first commit"
  • git status
  • heroku login(Enter your Heroku credentials)
  • heroku create ukifunwork2byname
  • git push heroku master(if it fails add heroku git remote:heroku git:remote -a yourapp & retry git push heroku master)
  • heroku open

No comments:

Post a Comment

Express

In this tutorial, we will also have a look at the express framework. This framework is built in such a way that it acts as a minimal an...