Strange bash issue.
Also set the default web=1 if /PS exists but is empty
Also check for empty PS in pre-deploy
Don't output the final PS after scale. Just re-deploy
Added a short sleep after nginx reload to make sure it has reloaded when deploy exits. This way the tests can pass
I found double check_deploy confusing. Went middleground
Added a ruby/rack test which also tests 'dokku config' and 'dokku ps'