Created
May 14, 2018 08:30
-
-
Save IanVaughan/583e4821886c24088c124f7e4c870993 to your computer and use it in GitHub Desktop.
Get a Rails Console to CoreAPI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage | |
# api-console staging | |
ENV=$1 | |
echo "* Finding POD on: $ENV" | |
POD=$(kubectl --context $ENV get pods | grep core-api-app | tail -n 1 | cut -d " " -f 1) | |
echo "* Execing into: $POD" | |
kubectl --context $ENV exec -it $POD rails c |
Author
IanVaughan
commented
May 14, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment