This document provides an introduction and overview of Heroku, an application deployment platform. It describes how Heroku allows developers to deploy and scale web apps through a process model using dynos and dyno manifolds without having to manage servers. Developers can use Heroku's command line interface to deploy apps through git pushes, connect add-on services, view logs, and manage dynos. Heroku also offers usage-based billing and free dyno hours for basic usage.
3. Agenda
Cloud Computing and Heroku
Process Model
Dynos Manifold
Deployment Stack
Add-on Services
Usage and Billing
CLI
4. Cloud Computing and Heroku
Cloud computing is a general term for
anything that involves delivering hosted
services over the Internet.
SAAS
PAAS
IAAS
5. Heroku
A new way of building and deploying web
apps
Spend 100% of your time on application
code
Forget managing servers, deployment,
ongoing operations, or scaling
6. How it works?
Deploy – Just a git push
Connect – Add 3rd party resources
Command – Use CLI/web interface
Observe – All activities logged using Logplex
Scale – Independent scaling of components
Relax - Takes full responsibility for your app's health.
8. Process Model
Process Type
Web : web application.
Worker : timed jobs and queuing systems.
Each app has a set of running processes
and the processes are instantiated using
'Process Type' as prototype.
10. Dyno
Basic unit of composition on Heroku.
A lightweight container running a single user-
specified command/process.
Possible commands
– Web processes
– Worker processes
– Other processes defined in Procfile
15. Usage & Billing
Usage is computed from wall-clock time, not
CPU time
Current charge : $0.05 per hour per dyno
Each app gets 750 free dyno-hours/month
– run 1 dyno for an entire month for free
OR
– run 2 dynos for 1/2 of a month
Add-on services have their own charges
19. Sample commands (git)
add heroku remote to existing project
git remote add heroku git@heroku.com:project.git
push different project code on existing heroku app
git push --force heroku master
Deploy git 'yourbranch' instead of master
git push heroku yourbranch:master
Remove heroku remote from the project
git remote rm heroku
20. Sample commands (config)
See all the config available for your project
heroku config
Add a key-value pair to config
heroku config:add COMPANY='Intelligrape Software'
Remove keys from config
sheroku config:remove COMPANY OTHER_VAR
//config variables are available as System properties on heroku.
// in Java/Groovy System.getenv('COMPANY')
25. Heroku postgres backup
heroku addons:add pgbackups
heroku addons:add pgbackups:plus #plus plan
heroku addons:add pgbackups:auto-week #auto-week plan
heroku pgbackups:capture #default database backup creation
heroku pgbackups:capture HEROKU_POSTGRESQL_PINK #selected database backup
heroku pgbackups:capture --expire # delete manual oldest backup
heroku pgbackups # see backups b indicates manual and a indicates auto
heroku pgbackups:url b004 # provides a 10 minute backup download public url
heroku pgbackups:destroy b003 # delete a backup
heroku pgbackups:restore DATABASE b251 # restore backup to DATABASE
heroku pgbackups:restore HEROKU_POSTGRESQL_PINK b251 #restore to PINK database
26. Contact us
Our Office
Client Location
Here’s how TOTHENEW
helps your customers
creating frameworks using
MEAN development!
Click Here To Know More!
Have more queries
related to MEAN
Development?
Talk To Our Experts