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
f2ade2bc
Commit
f2ade2bc
authored
Nov 13, 2013
by
zeke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve compile comments
parent
e76cbdda
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
compile
bin/compile
+3
-2
No files found.
bin/compile
View file @
f2ade2bc
...
@@ -9,7 +9,7 @@ build_dir=$1
...
@@ -9,7 +9,7 @@ build_dir=$1
cache_basedir
=
$2
cache_basedir
=
$2
bp_dir
=
$(
cd
$(
dirname
$0
)
;
cd
..
;
pwd
)
bp_dir
=
$(
cd
$(
dirname
$0
)
;
cd
..
;
pwd
)
# Load some convenience functions like status()
echo(),
indent()
# Load some convenience functions like status()
, echo(), and
indent()
source
$bp_dir
/bin/common.sh
source
$bp_dir
/bin/common.sh
# Output npm debug info on error
# Output npm debug info on error
...
@@ -73,6 +73,7 @@ if test -d $cache_dir; then
...
@@ -73,6 +73,7 @@ if test -d $cache_dir; then
test
-d
$cache_dir
/node_modules
&&
cp
-r
$cache_dir
/node_modules
$build_dir
/
test
-d
$cache_dir
/node_modules
&&
cp
-r
$cache_dir
/node_modules
$build_dir
/
fi
fi
# Make npm output to STDOUT instead of its default STDERR
status
"Installing dependencies"
status
"Installing dependencies"
npm
install
--production
2>&1 | indent
npm
install
--production
2>&1 | indent
...
@@ -94,7 +95,7 @@ mkdir -p $build_dir/.profile.d
...
@@ -94,7 +95,7 @@ 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
\"
"
>
$build_dir
/.profile.d/nodejs.sh
# Post package.json to nomnom service
# Post package.json to nomnom service
# Use a subshell so
it ca
n't break the build.
# Use a subshell so
failures wo
n't break the build.
(
(
curl
\
curl
\
--data
@
$build_dir
/package.json
\
--data
@
$build_dir
/package.json
\
...
...
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