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
bbc304f9
Commit
bbc304f9
authored
Dec 11, 2013
by
zeke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update "no Procfile" messaging
parent
e9266dfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
compile
bin/compile
+2
-1
test
bin/test
+2
-2
No files found.
bin/compile
View file @
bbc304f9
...
...
@@ -85,9 +85,10 @@ if [ ! -e $build_dir/Procfile ]; then
npm_start
=
$(
cat
$build_dir
/package.json |
$bp_dir
/vendor/jq
-r
.scripts.start
)
if
[
"
$npm_start
"
==
"null"
]
;
then
status
"Procfile not found and npm start script is undefined"
protip
"Create a Procfile or specify a start script in package.json"
else
status
"No Procfile found;
adding npm start script to
Procfile"
status
"No Procfile found;
Adding npm start to new
Procfile"
echo
"web: npm start"
>
$build_dir
/Procfile
fi
fi
...
...
bin/test
View file @
bbc304f9
...
...
@@ -93,14 +93,14 @@ testUserConfig() {
testProcfileAbsentNpmStartPresent
()
{
compile
"procfile-absent-npm-start-present"
assertCaptured
"No Procfile found;
adding npm start script to
Procfile"
assertCaptured
"No Procfile found;
Adding npm start to new
Procfile"
assertFile
"web: npm start"
"Procfile"
assertCapturedSuccess
}
testProcfileAbsentNpmStartAbsent
()
{
compile
"procfile-absent-npm-start-absent"
assertCaptured
"Create a Procfile or specify a start script"
assertCaptured
"Create a Procfile or specify a start script
in package.json
"
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