Skip to content

Commit

Permalink
Merge pull request #441 from reactioncommerce/respect-env-files
Browse files Browse the repository at this point in the history
feat: respect .env files
  • Loading branch information
brent-hoover authored Dec 13, 2021
2 parents 2f7fcac + bac11fa commit ffaf007
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 73 deletions.
2 changes: 2 additions & 0 deletions .reaction/scripts/run.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// Assumes Node 8.x
import _ from "lodash";
import childProcess from "child_process";
import dotenv from "dotenv";
import Log from "./logger.mjs";
import appSetup from "./appSetup.mjs";

function run() {
dotenv.config();
appSetup();

// Whatever debugging-related command line arguments were passed in to
Expand Down
1 change: 0 additions & 1 deletion imports/plugins/core/core/server/startup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const {
*/
export default function startup() {
const startTime = Date.now();

// This env may be set by the launch script, allowing us to time how long Meteor build/startup took.
if (REACTION_METEOR_APP_COMMAND_START_TIME) {
const elapsedMs = startTime - REACTION_METEOR_APP_COMMAND_START_TIME;
Expand Down
149 changes: 77 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"core-js": "^2.6.10",
"csv-parse": "^4.16.3",
"deep-equal": "^1.0.1",
"dotenv": "^10.0.0",
"envalid": "^6.0.0",
"font-awesome": "^4.7.0",
"graphql": "^14.5.8",
Expand Down

0 comments on commit ffaf007

Please sign in to comment.