This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
73 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
web: echo "it works!" | ||
web: echo "it works (web)!" | ||
worker: echo "it works (worker)!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
web: echo "it works (web) (alternate)!" | ||
worker: echo "it works (worker) (alternate)!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
'use strict'; | ||
|
||
let Forego = require('../lib/forego'); | ||
let cli = require('heroku-cli-util'); | ||
|
||
function* run (context) { | ||
let forego = new Forego(context.herokuDir); | ||
yield forego.ensureSetup(); | ||
forego.start({args: context.args, flags: context.flags}); | ||
} | ||
|
||
module.exports = { | ||
topic: 'local', | ||
command: 'start', | ||
description: 'run heroku app locally', | ||
default: true, | ||
help: `Start the application specified by a Procfile (defaults to ./Procfile) | ||
Examples: | ||
heroku local | ||
heroku local web | ||
heroku local -f Procfile.test -e .env.test`, | ||
args: [{name: 'processname', optional: true}], | ||
flags: [ | ||
{name: 'procfile', char: 'f', hasValue: true}, | ||
{name: 'env', char: 'e', hasValue: true}, | ||
{name: 'concurrency', char: 'c', hasValue: true}, | ||
{name: 'port', char: 'p', hasValue: true}, | ||
{name: 'r', char: 'r', hasValue: false} | ||
], | ||
run: cli.command(run) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use strict'; | ||
|
||
let Forego = require('../lib/forego'); | ||
let cli = require('heroku-cli-util'); | ||
|
||
function* run (context) { | ||
let forego = new Forego(context.herokuDir); | ||
yield forego.ensureSetup(); | ||
forego.version(); | ||
} | ||
|
||
module.exports = { | ||
topic: 'local', | ||
command: 'version', | ||
description: 'display forego version', | ||
help: 'Display forego version', | ||
run: cli.command(run) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
exports.topics = [{ | ||
exports.topic = { | ||
name: 'local', | ||
description: 'run heroku app locally' | ||
}]; | ||
}; | ||
|
||
exports.commands = [ | ||
require('./lib/commands/local'), | ||
require('./lib/commands/version') | ||
require('./commands/start'), | ||
require('./commands/run'), | ||
require('./commands/version') | ||
]; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters