Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
heroku-buildpack-nodejs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
heroku-buildpack-nodejs
Commits
b61a6f8f
Commit
b61a6f8f
authored
Nov 03, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #280 from heroku/append-node_modules-path
search node_modules after normal $PATH
parents
6b1a52b2
b3025250
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
environment.sh
lib/environment.sh
+1
-1
nodejs.sh
profile/nodejs.sh
+1
-1
run
test/run
+3
-3
No files found.
lib/environment.sh
View file @
b61a6f8f
...
...
@@ -42,6 +42,6 @@ write_profile() {
write_export
()
{
local
bp_dir
=
"
$1
"
local
build_dir
=
"
$2
"
echo
"export PATH=
\"
$build_dir
/.heroku/node/bin:
$build_dir
/node_modules/.bin:
\$
PATH
\"
"
>
$bp_dir
/export
echo
"export PATH=
\"
$build_dir
/.heroku/node/bin:
\$
PATH:
$build_dir
/node_modules/.bin
\"
"
>
$bp_dir
/export
echo
"export NODE_HOME=
\"
$build_dir
/.heroku/node
\"
"
>>
$bp_dir
/export
}
profile/nodejs.sh
View file @
b61a6f8f
...
...
@@ -28,7 +28,7 @@ detect_memory() {
esac
}
export
PATH
=
"
$HOME
/.heroku/node/bin:
$
HOME
/bin:
$HOME
/node_modules/.bin:
$PATH
"
export
PATH
=
"
$HOME
/.heroku/node/bin:
$
PATH
:
$HOME
/bin:
$HOME
/node_modules/.bin
"
export
NODE_HOME
=
"
$HOME
/.heroku/node"
export
NODE_ENV
=
${
NODE_ENV
:-
production
}
...
...
test/run
View file @
b61a6f8f
...
...
@@ -456,7 +456,7 @@ testShrinkwrap() {
testProfileExport
()
{
compile
"stable-node"
assertCaptured
"Creating runtime environment"
assertFileContains
"export PATH=
\"\$
HOME/.heroku/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
"
${
compile_dir
}
/.profile.d/nodejs.sh"
assertFileContains
"export PATH=
\"\$
HOME/.heroku/node/bin:
\$
PATH:
\$
HOME/bin:
\$
HOME/node_modules/.bin
\"
"
"
${
compile_dir
}
/.profile.d/nodejs.sh"
assertFileContains
"export NODE_HOME=
\"\$
HOME/.heroku/node
\"
"
"
${
compile_dir
}
/.profile.d/nodejs.sh"
assertCapturedSuccess
}
...
...
@@ -464,8 +464,8 @@ testProfileExport() {
testMultiExport
()
{
compile
"stable-node"
assertFileContains
"export PATH="
"
${
bp_dir
}
/export"
assertFileContains
"/.heroku/node/bin
:
"
"
${
bp_dir
}
/export"
assertFileContains
"/node_modules/.bin
:
\$
PATH
"
"
${
bp_dir
}
/export"
assertFileContains
"/.heroku/node/bin"
"
${
bp_dir
}
/export"
assertFileContains
"/node_modules/.bin"
"
${
bp_dir
}
/export"
assertFileContains
"export NODE_HOME="
"
${
bp_dir
}
/export"
assertFileContains
"/.heroku/node
\"
"
"
${
bp_dir
}
/export"
assertCapturedSuccess
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment