First stab at dokku run Procfile shorthand

This commit is contained in:
Pascal Widdershoven
2016-03-23 21:06:20 +01:00
parent d521932dcb
commit e64daa18cf
4 changed files with 35 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
cron: node worker.js
web: node web.js
worker: node worker.js
console: bash
# Old version with separate processes (use this if you have issues with the threaded version)

View File

@@ -128,6 +128,16 @@ build_nginx_config() {
assert_success
}
@test "(core) run command from Procfile" {
deploy_app
run /bin/bash -c "dokku run $TEST_APP console -c 'echo hi' | tail -n 1"
echo "output: "$output
echo "status: "$status
assert_success
assert_output "hi"
}
@test "(core) port exposure (dockerfile raw port)" {
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
cat<<EOF > $DOCKERFILE