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
7084667a
Commit
7084667a
authored
Jan 16, 2015
by
Hunter Loftis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #186 from heroku/log-state-reads
Log state reads
parents
fbb2aba0
5d647cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
compile
bin/compile
+14
-7
No files found.
bin/compile
View file @
7084667a
...
...
@@ -27,22 +27,29 @@ unset GIT_DIR
# Provide hook to deal with errors
trap
build_failed ERR
# Load config vars into environment; set smart defaults
export_env_dir
$env_dir
export
NPM_CONFIG_PRODUCTION
=
${
NPM_CONFIG_PRODUCTION
:-
true
}
export
NODE_MODULES_CACHE
=
${
NODE_MODULES_CACHE
:-
true
}
####### Determine current state
head
"Reading application state"
info
"package.json..."
iojs_engine
=
$(
read_json
"
$build_dir
/package.json"
".engines.iojs"
)
node_engine
=
$(
read_json
"
$build_dir
/package.json"
".engines.node"
)
node_previous
=
$(
file_contents
"
$cache_dir
/node/node-version"
)
npm_engine
=
$(
read_json
"
$build_dir
/package.json"
".engines.npm"
)
npm_previous
=
$(
file_contents
"
$cache_dir
/node/npm-version"
)
info
"build directory..."
start_method
=
$(
get_start_method
"
$build_dir
"
)
modules_source
=
$(
get_modules_source
"
$build_dir
"
)
info
"cache directory..."
npm_previous
=
$(
file_contents
"
$cache_dir
/node/npm-version"
)
node_previous
=
$(
file_contents
"
$cache_dir
/node/node-version"
)
modules_cached
=
$(
get_modules_cached
"
$cache_dir
"
)
info
"environment variables..."
export_env_dir
$env_dir
export
NPM_CONFIG_PRODUCTION
=
${
NPM_CONFIG_PRODUCTION
:-
true
}
export
NODE_MODULES_CACHE
=
${
NODE_MODULES_CACHE
:-
true
}
show_current_state
if
[
"
$iojs_engine
"
==
""
]
;
then
...
...
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