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
86c611ab
Commit
86c611ab
authored
Mar 05, 2012
by
David Dollar
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14 from lackac/patch-1
Move CACHE_STORE_DIR assignment after setting NPM_VERSION
parents
be3dbbe8
4d48184f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
compile
bin/compile
+4
-2
No files found.
bin/compile
View file @
86c611ab
...
@@ -18,8 +18,6 @@ S3_BUCKET="heroku-buildpack-nodejs"
...
@@ -18,8 +18,6 @@ S3_BUCKET="heroku-buildpack-nodejs"
BUILD_DIR
=
$1
BUILD_DIR
=
$1
CACHE_DIR
=
$2
CACHE_DIR
=
$2
LP_DIR
=
`
cd
$(
dirname
$0
)
;
cd
..
;
pwd
`
LP_DIR
=
`
cd
$(
dirname
$0
)
;
cd
..
;
pwd
`
CACHE_STORE_DIR
=
"
$CACHE_DIR
/node_modules/
$NPM_VERSION
"
CACHE_TARGET_DIR
=
"
$BUILD_DIR
/node_modules"
function
error
()
{
function
error
()
{
echo
" !
$*
"
echo
" !
$*
"
...
@@ -124,6 +122,10 @@ echo "Using Node.js version: ${NODE_VERSION}" | indent
...
@@ -124,6 +122,10 @@ echo "Using Node.js version: ${NODE_VERSION}" | indent
NPM_VERSION
=
$(
package_resolve_version
"npm"
)
NPM_VERSION
=
$(
package_resolve_version
"npm"
)
echo
"Using npm version:
${
NPM_VERSION
}
"
| indent
echo
"Using npm version:
${
NPM_VERSION
}
"
| indent
# cache directories
CACHE_STORE_DIR
=
"
$CACHE_DIR
/node_modules/
$NPM_VERSION
"
CACHE_TARGET_DIR
=
"
$BUILD_DIR
/node_modules"
# s3 packages
# s3 packages
NODE_PACKAGE
=
"http://
${
S3_BUCKET
}
.s3.amazonaws.com/nodejs-
${
NODE_VERSION
}
.tgz"
NODE_PACKAGE
=
"http://
${
S3_BUCKET
}
.s3.amazonaws.com/nodejs-
${
NODE_VERSION
}
.tgz"
NPM_PACKAGE
=
"http://
${
S3_BUCKET
}
.s3.amazonaws.com/npm-
${
NPM_VERSION
}
.tgz"
NPM_PACKAGE
=
"http://
${
S3_BUCKET
}
.s3.amazonaws.com/npm-
${
NPM_VERSION
}
.tgz"
...
...
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