Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit 0233b5a

Browse files
committed
Use process.cwd() instead of process.env.PWD when determining root template path (#29)
1 parent 132a07c commit 0233b5a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: utils.coffee

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,12 @@ if process.env.BUNDLE_PATH
2222
else if process.env.APP_DIR
2323
ROOT = path.join(process.env.APP_DIR, 'programs','server', 'assets', 'app')
2424
else
25-
# In development, using PWD is fine.
26-
ROOT = path.join(process.env.PWD, 'private')
25+
26+
# In development, using pwd is fine. Remove the .meteor/foo/bar stuff though.
27+
realPath = process.cwd().replace(/(\.meteor.*)/g, '')
28+
ROOT = path.join(realPath, 'private')
29+
30+
console.log ROOT
2731

2832
Utils =
2933

0 commit comments

Comments
 (0)