Commit bbc304f9 authored by zeke's avatar zeke

update "no Procfile" messaging

parent e9266dfe
...@@ -85,9 +85,10 @@ if [ ! -e $build_dir/Procfile ]; then ...@@ -85,9 +85,10 @@ if [ ! -e $build_dir/Procfile ]; then
npm_start=$(cat $build_dir/package.json | $bp_dir/vendor/jq -r .scripts.start) npm_start=$(cat $build_dir/package.json | $bp_dir/vendor/jq -r .scripts.start)
if [ "$npm_start" == "null" ]; then 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" protip "Create a Procfile or specify a start script in package.json"
else 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 echo "web: npm start" > $build_dir/Procfile
fi fi
fi fi
......
...@@ -93,14 +93,14 @@ testUserConfig() { ...@@ -93,14 +93,14 @@ testUserConfig() {
testProcfileAbsentNpmStartPresent() { testProcfileAbsentNpmStartPresent() {
compile "procfile-absent-npm-start-present" 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" assertFile "web: npm start" "Procfile"
assertCapturedSuccess assertCapturedSuccess
} }
testProcfileAbsentNpmStartAbsent() { testProcfileAbsentNpmStartAbsent() {
compile "procfile-absent-npm-start-absent" 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 assertCapturedSuccess
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment