-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases_ezcater
40 lines (29 loc) · 1.46 KB
/
aliases_ezcater
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
alias run="~/code/ezcater/eztilt/run"
alias eztilt="~/code/ezcater/eztilt/eztilt"
alias landings_psql='psql -h localhost -U postgres -p 26446 -d landings_development'
alias dev1_deploy="git commit -m '[deploy dev1]' --allow-empty"
function config() {
URL=""
case "$2" in
"dev1")
URL="https://configuration.staging-ezcater.net/api/variables/kubernetes-useast1/dev1/"
;;
"staging")
URL="https://configuration.staging-ezcater.net/api/variables/kubernetes-useast1/staging/"
;;
"ci")
URL="https://configuration.ezcater.net/api/variables/kubernetes-useast1/ci/"
;;
*)
URL="https://configuration.ezcater.net/api/variables/kubernetes-useast1/production/"
;;
esac
APP="$1"
curl "${URL}${APP}"
}
alias kubeprod="kubectl config set-context jason.draper-kubernetes-useast1-production && kubectl config use-context jason.draper-kubernetes-useast1-production"
alias kubestage="kubectl config set-context staging-eks-useast1 && kubectl config use-context staging-eks-useast1"
alias schemadump="git stash -u && git checkout main && git pull && git checkout - && g rebase main && bundle && rake graphql:schema:dump && git add schema && git commit -m 'schema dump' && git stash pop"
alias local_gqt="GQT_ENDPOINT=http://localhost:3000/graphql gqt -H 'X-EZCATER-SERVICE-NAME: store' -H 'X-EZCATER-SOURCE: client'"
alias syncit="eztilt trigger ez-rails--sync"
alias migrateit="run rake db:migrate && eztilt trigger ez-rails--sync"