github twitter email rss
Heroku
0001 Jun 1
One minute read

Heroku

heroku login
heroku create app
heroku git:clone -a app
git push heroku master

heroku config
heorku ps

Heroku runs release in Dyno

Dyno
isolated, virtualized Unix containers

Release
append-only ledger of slugs, config vars, provisioned add-ons

Slug
deployed source code + Procfile + fetched dependencies + the language runtime

Config vars
configuration data, exposed to a running application via environment variables.
.env file

Procfile
define commands
lists process types - named commands that you may want executed.

One-off Dynos
are temporary dynos that can run with their input/output attached to your local terminal. They’re loaded with your latest release.
heroku run bash

Addons
third party, specialized, value-added cloud services

Logplex
automatically collates log entries from all the running dynos
heroku logs --ps web.1 --tail heroku logs --tail

Addons

heroku addons:add heroku-postgresql:dev
heroku pg

heroku addons:add papertrail
heroku addons:open papertrail

Python

[](https://devcenter.heroku.com/articles/python-support)
[](https://devcenter.heroku.com/articles/getting-started-with-python#introduction)
[](https://devcenter.heroku.com/articles/getting-started-with-django)
[](https://devcenter.heroku.com/articles/python-gunicorn)

requirements.txt
runtime.txt
python-3.4.1
Procfile
web: gunicorn gettingstarted.wsgi –log-file -

virtualenv venv
source venv/Scripts/activate
source venv/bin/activate
pip install -r requirements.txt --allow-all-external
foreman start web
heroku run python manage.py shell
heroku run bash

heroku config
heroku config:set TIMES=2

Back to posts


comments powered by Disqus