heroku 8.10.1-beta.0 → 8.11.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const completions_1 = require("@heroku-cli/command/lib/completions");
4
4
  const core_1 = require("@oclif/core");
5
+ const fs = require("fs");
6
+ const color_1 = require("@heroku-cli/color");
5
7
  const fork_foreman_1 = require("../../lib/local/fork-foreman");
6
8
  // eslint-disable-next-line node/no-missing-require
7
9
  const Procfile = require('../../lib/local/load-foreman-procfile');
@@ -15,10 +17,14 @@ class Index extends core_1.Command {
15
17
  if (flags.concurrency) {
16
18
  this.error('--concurrency is no longer available\nUse forego instead: https://github.com/ddollar/forego');
17
19
  }
20
+ let envFile = flags.env || '.env';
21
+ if (fs.existsSync(envFile) && !fs.statSync(envFile).isFile()) {
22
+ this.warn(`The specified location for the env file, ${color_1.default.bold(envFile)}, is not a file, ignoring.`);
23
+ envFile = '';
24
+ }
18
25
  if (flags.procfile)
19
26
  execArgv.push('--procfile', flags.procfile);
20
- if (flags.env)
21
- execArgv.push('--env', flags.env);
27
+ execArgv.push('--env', envFile);
22
28
  if (flags.port)
23
29
  execArgv.push('--port', flags.port);
24
30
  if (args.processname) {
@@ -2,7 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const completions_1 = require("@heroku-cli/command/lib/completions");
4
4
  const core_1 = require("@oclif/core");
5
+ const color_1 = require("@heroku-cli/color");
5
6
  const fork_foreman_1 = require("../../lib/local/fork-foreman");
7
+ const fs = require("fs");
6
8
  class Run extends core_1.Command {
7
9
  async run() {
8
10
  const execArgv = ['run'];
@@ -11,8 +13,12 @@ class Run extends core_1.Command {
11
13
  const errorMessage = 'Usage: heroku local:run [COMMAND]\nMust specify command to run';
12
14
  this.error(errorMessage, { exit: -1 });
13
15
  }
14
- if (flags.env)
15
- execArgv.push('--env', flags.env);
16
+ let envFile = flags.env || '.env';
17
+ if (fs.existsSync(envFile) && !fs.statSync(envFile).isFile()) {
18
+ this.warn(`The specified location for the env file, ${color_1.default.bold(envFile)}, is not a file, ignoring.`);
19
+ envFile = '';
20
+ }
21
+ execArgv.push('--env', envFile);
16
22
  if (flags.port)
17
23
  execArgv.push('--port', flags.port);
18
24
  execArgv.push('--'); // disable node-foreman flag parsing
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "8.10.1-beta.0",
2
+ "version": "8.11.0-beta.1",
3
3
  "commands": {
4
4
  "console": {
5
5
  "id": "console",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "heroku",
3
3
  "description": "CLI to interact with Heroku",
4
- "version": "8.10.1-beta.0",
4
+ "version": "8.11.0-beta.1",
5
5
  "author": "Jeff Dickey @jdxcode",
6
6
  "bin": "./bin/run",
7
7
  "bugs": "https://github.com/heroku/cli/issues",
@@ -10,18 +10,18 @@
10
10
  "@heroku-cli/command": "^10.0.0",
11
11
  "@heroku-cli/command-v9": "npm:@heroku-cli/command@^9.0.2",
12
12
  "@heroku-cli/notifications": "^1.2.2",
13
- "@heroku-cli/plugin-addons-v5": "^8.10.1-beta.0",
14
- "@heroku-cli/plugin-apps-v5": "^8.10.1-beta.0",
15
- "@heroku-cli/plugin-certs-v5": "^8.10.1-beta.0",
16
- "@heroku-cli/plugin-ci-v5": "^8.10.1-beta.0",
17
- "@heroku-cli/plugin-container-registry-v5": "^8.10.1-beta.0",
18
- "@heroku-cli/plugin-orgs-v5": "^8.10.1-beta.0",
19
- "@heroku-cli/plugin-pg-v5": "^8.10.1-beta.0",
13
+ "@heroku-cli/plugin-addons-v5": "^8.11.0-beta.1",
14
+ "@heroku-cli/plugin-apps-v5": "^8.11.0-beta.1",
15
+ "@heroku-cli/plugin-certs-v5": "^8.11.0-beta.1",
16
+ "@heroku-cli/plugin-ci-v5": "^8.11.0-beta.1",
17
+ "@heroku-cli/plugin-container-registry-v5": "^8.11.0-beta.1",
18
+ "@heroku-cli/plugin-orgs-v5": "^8.11.0-beta.1",
19
+ "@heroku-cli/plugin-pg-v5": "^8.11.0-beta.1",
20
20
  "@heroku-cli/plugin-ps": "^8.1.7",
21
21
  "@heroku-cli/plugin-ps-exec": "^2.4.0",
22
- "@heroku-cli/plugin-redis-v5": "^8.10.1-beta.0",
22
+ "@heroku-cli/plugin-redis-v5": "^8.11.0-beta.1",
23
23
  "@heroku-cli/plugin-run": "8.1.4",
24
- "@heroku-cli/plugin-spaces": "^8.10.1-beta.0",
24
+ "@heroku-cli/plugin-spaces": "^8.11.0-beta.1",
25
25
  "@heroku-cli/schema": "^1.0.25",
26
26
  "@heroku/buildpack-registry": "^1.0.1",
27
27
  "@heroku/eventsource": "^1.0.7",
@@ -356,5 +356,5 @@
356
356
  "version": "oclif readme --multi && git add README.md ../../docs"
357
357
  },
358
358
  "types": "lib/index.d.ts",
359
- "gitHead": "13cd6605308d12380e1ac564a7812436bf70b29f"
359
+ "gitHead": "b1a1414f0b18963d545daa0edd2bbc0f53e029e3"
360
360
  }