After the Deploy

Great, you've deployed your app! Now what?

First of all, you can always ask Kuby what's possible by running

bundle exec kuby --help

Check the status of your deployment by running:

bundle exec kuby -e production remote status

The obvious way to see if your app is working or not is to try to access it over the Internet. If the deploy succeeded (and kuby remote status indicates everything's up and running) but your app is erroring out, chances are something is misconfigured. A good place to look when diagnosing issues is your Rails server log. Run the following command to see a live log tail:

bundle exec kuby -e production remote logs

Establish a shell session by running:

bundle exec kuby -e production remote shell

Establish a Rails console session by running:

bundle exec kuby -e production remote console

Establish a database console session by running:

bundle exec kuby -e production remote dbconsole

Other Useful Commands

Print out the Dockerfile:

bundle exec kuby -e production dockerfile

Print out all your Kubernetes configs:

bundle exec kuby -e production resources

Run an arbitrary kubectl command:

bundle exec kuby -e production kubectl -- [cmd]