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
381f36f2
Commit
381f36f2
authored
Nov 03, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
search node_modules after normal $PATH
parent
6b1a52b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
environment.sh
lib/environment.sh
+1
-1
nodejs.sh
profile/nodejs.sh
+1
-1
No files found.
lib/environment.sh
View file @
381f36f2
...
@@ -42,6 +42,6 @@ write_profile() {
...
@@ -42,6 +42,6 @@ write_profile() {
write_export
()
{
write_export
()
{
local
bp_dir
=
"
$1
"
local
bp_dir
=
"
$1
"
local
build_dir
=
"
$2
"
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
echo
"export NODE_HOME=
\"
$build_dir
/.heroku/node
\"
"
>>
$bp_dir
/export
}
}
profile/nodejs.sh
View file @
381f36f2
...
@@ -28,7 +28,7 @@ detect_memory() {
...
@@ -28,7 +28,7 @@ detect_memory() {
esac
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_HOME
=
"
$HOME
/.heroku/node"
export
NODE_ENV
=
${
NODE_ENV
:-
production
}
export
NODE_ENV
=
${
NODE_ENV
:-
production
}
...
...
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