Skip to content

Commit

Permalink
skip env source if on windows for iron-meteor#138
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbutler committed Aug 29, 2015
1 parent e0945ea commit e528274
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/commands/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Command.create({
usage: 'iron run [--use-build] [--env]',
description: 'Run your app for a given environment.'
}, function (args, opts) {
var onWindows = process.platform === "win32";

if (!this.findProjectDirectory())
throw new Command.MustBeInProjectError;

Expand All @@ -37,7 +39,8 @@ Command.create({
}

// source the env file into the process environment
if (this.isFile(envPath)) {
// BUT this doesn't work on Windows
if (!onWindows && this.isFile(envPath)) {
syncSource(envPath);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ejs": "0.8.5",
"fibers": "1.0.6",
"single-line-log": "0.4.1",
"shell-source": "1.0.1",
"shell-source": "1.1.0",
"xtend": "^4.0.0"
},
"bin": {
Expand Down

0 comments on commit e528274

Please sign in to comment.