06. Heroku - MuchChaca/KelKannes GitHub Wiki

Table of content

Login to heroku

# requires credentials
heroku login

Push from a different branch

# git push remote localBranch:remoteBranch
# may require a force (--force or -f)
git push heroku yourbranch:master

Run locally

Runs the app.

heroku local up

Build locally

Creates database if doesn't exists & force update on database's schema.

heroku local build

Build & run locally

Creates database if doesn't exists & force update on database's schema. Then runs the app.

heroku local up-build

Available commands

Command Description
heroku ps Check scaling status.
heroku ps:scale web=1 This will scale the app web with 1 dyno allocated to it (can sleep). -- on the remote
heroku ps:scale web=0 By removing all dynos allocated to an pp, it will be deactivated. -- on the remote
heroku local build builds / updates the database schema (forced)
heroku local up starts the app locally
heroku local up-build builds/updates the database schema (forced) and starts the app locally
heroku local gen-doc (re)generates the documentation - PHPdoc with Sami
heroku local doc-start shows the documentation (PHPdoc) by Sami in the browse
heroku local gen-doc-start (re)generates the documentation - PHP doc with Sami - and shows it in the browser
⚠️ **GitHub.com Fallback** ⚠️