Deployer commands
Selectors
shell
# Run Docker tasks on local swarm leader
dep app:docker 'env=local & swarm=leader'
# Show tasks for a single host
dep app:provision smarthealth-app-trial-worker-ams3-1 --plan
Execute remote commands
Run a command in the main PHP container on just the swarm leader (worker) server:
shell
dep app:command:once env=local --command='php artisan --version'
Run a command in the PHP container on every server:
shell
dep app:command:all env=local --command='php artisan --version'
Seed test data
shell
dep app:command env=local --command='php artisan db:seed'