Merge pull request #2018 from pascalw/feature/dokku-run-from-procfile

Support running Procfile commands using `dokku run`
This commit is contained in:
Michael Hobbs
2016-06-16 12:42:01 -07:00
committed by GitHub
4 changed files with 35 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
cron: node worker.js
web: node web.js # testing inline comment
worker: node worker.js
custom: echo -n
# Old version with separate processes (use this if you have issues with the threaded version)

View File

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