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
ed2fce08
Commit
ed2fce08
authored
Sep 24, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into fully-disable-cache
parents
8e48f2cb
bfb75db6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
CHANGELOG.md
CHANGELOG.md
+4
-0
nodejs.sh
profile/nodejs.sh
+4
-4
run
test/run
+10
-10
No files found.
CHANGELOG.md
View file @
ed2fce08
# Node.js Buildpack Changelog
## v81 (2015-09-24)
Supports WEB_CONCURRENCY=28 for Performance-L dynos
## v80 (2015-08-14)
Fixes not defaulting to
`NODE_ENV=production`
during runtime
...
...
profile/nodejs.sh
View file @
ed2fce08
...
...
@@ -20,10 +20,10 @@ detect_memory() {
local
limit
=
$(
ulimit
-u
)
case
$limit
in
256
)
echo
"512"
;;
# Standard-1X
512
)
echo
"1024"
;;
# Standard-2X
16384
)
echo
"2560"
;;
# Performance-M
32768
)
echo
"
6144
"
;;
# Performance-L
256
)
echo
"512"
;;
# Standard-1X
512
)
echo
"1024"
;;
# Standard-2X
16384
)
echo
"2560"
;;
# Performance-M
32768
)
echo
"
14336
"
;;
# Performance-L
*
)
echo
"
$default
"
;;
esac
}
...
...
test/run
View file @
ed2fce08
...
...
@@ -60,11 +60,11 @@ testConcurrencyPerformanceM() {
assertCapturedSuccess
}
testConcurrencyP
X
()
{
LOG_CONCURRENCY
=
true
MEMORY_AVAILABLE
=
6144
capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 6144
MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=12
"
assertCapturedSuccess
testConcurrencyP
erformanceL
()
{
LOG_CONCURRENCY
=
true
MEMORY_AVAILABLE
=
14336
capture
$(
pwd
)
/profile/nodejs.sh
assertCaptured
"Detected 14336
MB available memory, 512 MB limit per process (WEB_MEMORY)"
assertCaptured
"Recommending WEB_CONCURRENCY=28
"
assertCapturedSuccess
}
testConcurrencyCustomLimit
()
{
...
...
@@ -173,7 +173,7 @@ testNoVersion() {
compile
"no-version"
assertCaptured
"engines.node (package.json): unspecified"
assertCaptured
"Resolving node version (latest stable) via semver.io"
assertCaptured
"Downloading and installing node
0.12
."
assertCaptured
"Downloading and installing node
4
."
assertCapturedSuccess
}
...
...
@@ -201,7 +201,7 @@ testUnstableVersion() {
testOldNpm
()
{
compile
"old-npm"
assertCaptured
"This version of npm (1.2.8000) has several known issues - consider upgrading to the latest release (
2
."
assertCaptured
"This version of npm (1.2.8000) has several known issues - consider upgrading to the latest release (
3
."
assertNotCaptured
"integer expression expected"
assertCapturedError
}
...
...
@@ -277,7 +277,7 @@ testDangerousRangeStar() {
compile
"dangerous-range-star"
assertCaptured
"Dangerous semver range"
assertCaptured
"Resolving node version * via semver.io"
assertCaptured
"Downloading and installing node
0.12
."
assertCaptured
"Downloading and installing node
4
."
assertCapturedError
}
...
...
@@ -285,14 +285,14 @@ testDangerousRangeGreaterThan() {
compile
"dangerous-range-greater-than"
assertCaptured
"Dangerous semver range"
assertCaptured
"Resolving node version >0.4 via semver.io"
assertCaptured
"Downloading and installing node
0.12
"
assertCaptured
"Downloading and installing node
4.
"
assertCapturedError
}
testRangeWithSpace
()
{
compile
"range-with-space"
assertCaptured
"Resolving node version >= 0.8.x via semver.io"
assertCaptured
"Downloading and installing node
0.12
"
assertCaptured
"Downloading and installing node
4.
"
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