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
ae619742
Commit
ae619742
authored
Dec 05, 2013
by
zeke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set default NODE_ENV to 'production'
parent
5754e60d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
compile
bin/compile
+2
-1
test
bin/test
+1
-1
No files found.
bin/compile
View file @
ae619742
...
...
@@ -83,7 +83,8 @@ rm -rf "$build_dir/.npm"
# Update the PATH
status
"Building runtime environment"
mkdir
-p
$build_dir
/.profile.d
echo
"export PATH=
\"\$
HOME/vendor/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
>
$build_dir
/.profile.d/nodejs.sh
echo
"export PATH=
\"\$
HOME/vendor/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
;
\
export NODE_ENV=
${
NODE_ENV
:-
production
}
"
>
$build_dir
/.profile.d/nodejs.sh
# Post package.json to nomnom service
# Use a subshell so failures won't break the build.
...
...
bin/test
View file @
ae619742
...
...
@@ -60,7 +60,7 @@ testUnstableVersion() {
testProfileCreated
()
{
compile
"stable-node"
assertCaptured
"Building runtime environment"
assertFile
"export PATH=
\"\$
HOME/vendor/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
"
".profile.d/nodejs.sh"
assertFile
"export PATH=
\"\$
HOME/vendor/node/bin:
\$
HOME/bin:
\$
HOME/node_modules/.bin:
\$
PATH
\"
;export NODE_ENV=
${
NODE_ENV
:-
production
}
"
".profile.d/nodejs.sh"
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