Convox allows you to execute one-off commands on your App. This can be used for starting a shell for debugging purposes or running administrative commands such as database migrations.
Spawning a new Process
Running an interactive process will start a Process and connect your local terminal so that you can run commands and see output:
$ convox run web bash root@web#
Running detached is useful for long-running tasks that you don’t want to be disrupted:
$ convox run web bin/cleanup-database --detach Running detached process... OK, web-s43xf
Running a command in an existing Process
$ convox ps ID SERVICE STATUS RELEASE STARTED COMMAND web-6844dc6f45-9wdss web running RABCDEFGHI 14 minutes ago bin/web web-6844dc6f45-mj9mp web running RABCDEFGHI 14 minutes ago bin/web $ convox exec web-6844dc6f45-9wdss bash root@web#