Heroku
what is Heroku?
It’s a service 
for developers eager to get their applications online without having to 
worry about infrastructure details.
⟹What is 
Heroku?
➔Metered, pay-as-you-go Cloud Computing services come in all 
kinds of flavors. 
➔Infrastructure as a Service (IaaS) offerings like AWS 
allow enterprises to shift their entire operations away from traditional
 data centers. 
➔The down side is that you’ll have to manage networking 
and provisioning yourself. 
➔On the other hand, Platform as a Service 
providers like Heroku, offer abstracted environments into which 
developers can simply drop their code and let the platform take care of 
the provisioning details. 
➔Heroku uses 
Git (a distributed version control system for code management) to manage
 application deployments. 
➔All you’ll need to do to deploy your 
application on Heroku is push your Git repository to their servers.
What is Heroku and why are its application deployments so simple
⟹Heroku…
➔Runs your application across a pre-set number of virtual servers.
➔Manages releases by rolling out your application to different environments.
➔Ensures your application automatically recovers from server failures.
➔Handles load balancing across many application instances, allowing 
you to instantly scale your application to support millions of users.
➔Allows you to quickly add and remove infrastructure blocks like caching servers and database servers. 
⟹Heroku supports the
➔Ruby
➔Node.js
➔Python
➔Java
➔Go
➔PHP and
➔Scala
programming languages.
➔This means existing technologies can be easily 
be deployed on Heroku with a minimum of modification needed.
What is Heroku: building blocks
⟹Dynos
➔Dynos, like AWS instances or Azure virtual
 machines, are individual virtual servers. Dynos are built on Ubuntu 
images, which means that if your application can run on the Ubuntu, 
it’ll be fine on Heroku. 
➡There are three types of Dynos:
➔Web dynos: web instance running HTTP services.
➔Worker dynos: instances launched to process asynchronous jobs.
➔One-off dynos: temporary instances that can be loaded with your latest code realease and run detached, or with their 
input/output attached to your local terminal. They can be used to handle
 administrative tasks like database migrations 
  heroku update commands
⟹create new app in heroku
git init
git status
git add .
git status
git commit -m "your commit"
heroku login
heroku create filename
git push heroku master
heroku open
⟹Already we created but now we modified that file then we push this way
git init
git status
git add .
git status
git commit -m "your commit"
heroku login
git push heroku master
heroku open



No comments:
Post a Comment