Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

heroku/heroku-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2a2e99d · Feb 12, 2022
May 31, 2018
May 31, 2018
Aug 9, 2017
Apr 22, 2016
Apr 25, 2017
Feb 12, 2022
Apr 22, 2016
Jun 20, 2016
Jul 8, 2015
Jun 20, 2016
May 31, 2018
Apr 18, 2018
May 31, 2018
May 31, 2018
May 31, 2018

Repository files navigation

heroku-local Circle CI

Code Climate npm version License

js-standard-style

Run heroku apps locally. This plugin is built into the Heroku Toolbelt, you do not need to install it separately.

To use:

$ heroku local
12:47:17 PM web.1 | listening on 3000

This command internally uses node-foreman to run the app locally.

Commands

heroku local [PROCESSNAME]

run heroku app locally

USAGE
  $ heroku local [PROCESSNAME]

OPTIONS
  -e, --env=env            location of env file (defaults to .env)
  -f, --procfile=procfile  use a different Procfile
  -p, --port=port          port to listen on

DESCRIPTION
  Start the application specified by a Procfile (defaults to ./Procfile)

EXAMPLES
  $ heroku local
  $ heroku local web
  $ heroku local web=2
  $ heroku local web=1,worker=2

heroku local:run

run a one-off command

USAGE
  $ heroku local:run

OPTIONS
  -e, --env=env
  -p, --port=port

EXAMPLES
  $ heroku local:run bin/migrate

heroku local:start [PROCESSNAME]

run heroku app locally

USAGE
  $ heroku local:start [PROCESSNAME]

OPTIONS
  -e, --env=env            location of env file (defaults to .env)
  -f, --procfile=procfile  use a different Procfile
  -p, --port=port          port to listen on

DESCRIPTION
  Start the application specified by a Procfile (defaults to ./Procfile)

EXAMPLES
  $ heroku local
  $ heroku local web
  $ heroku local web=2
  $ heroku local web=1,worker=2

heroku local:version

display node-foreman version

USAGE
  $ heroku local:version