First stab at dokku run Procfile shorthand
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user