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
5551cd72
Commit
5551cd72
authored
Aug 09, 2013
by
zeke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use bin instead of node/bin
parent
25df93f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
common.sh
bin/common.sh
+6
-0
compile
bin/compile
+6
-4
No files found.
bin/common.sh
View file @
5551cd72
...
...
@@ -35,4 +35,10 @@ function indent() {
Darwin
)
sed
-l
"
$c
"
;;
*
)
sed
-u
"
$c
"
;;
esac
}
function
cat_npm_debug_log
()
{
if
[
-f
$BUILD_DIR
/npm-debug.log
]
;
then
cat
$BUILD_DIR
/npm-debug.log
fi
}
\ No newline at end of file
bin/compile
View file @
5551cd72
...
...
@@ -8,19 +8,21 @@ NODE_URL="http://s3pository.heroku.com/node/v$NODE_VERSION/node-v$NODE_VERSION-l
source
$BIN_DIR
/common.sh
# Output debug info on exit
trap
cat_npm_debug_log EXIT
status
"Downloading node v
$NODE_VERSION
"
echo
"
$NODE_URL
"
| indent
tar_download
$NODE_URL
$BUILD_DIR
status
"Moving node and npm to build directory"
mv
$BUILD_DIR
/node-v
$NODE_VERSION
-linux-x64
$BUILD_DIR
/
node
mv
$BUILD_DIR
/node-v
$NODE_VERSION
-linux-x64
$BUILD_DIR
/
bin
status
"Making node and npm executable"
chmod
+x
$BUILD_DIR
/
node/
bin/
*
chmod
+x
$BUILD_DIR
/bin/
*
status
"Adding node and npm to the
\$
PATH"
PATH
=
$PATH
:
$BUILD_DIR
/node/bin
echo
"node version
$NODE_VERSION
has been installed"
| indent
PATH
=
"
$BUILD_DIR
/bin:
$PATH
"
status
"Installing dependencies with npm"
cd
$BUILD_DIR
...
...
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