06. Heroku - MuchChaca/KelKannes GitHub Wiki
- Login to heroku
- Push from a different branch
- Run locally
- Build locally
- Build & run locally
- Available commands
# requires credentials
heroku login# git push remote localBranch:remoteBranch
# may require a force (--force or -f)
git push heroku yourbranch:masterRuns the app.
heroku local upCreates database if doesn't exists & force update on database's schema.
heroku local buildCreates database if doesn't exists & force update on database's schema. Then runs the app.
heroku local up-build| 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 |