-
Notifications
You must be signed in to change notification settings - Fork 0
roomkey dev notes
therrick edited this page Dec 4, 2013
·
18 revisions
git tag -l -n1
- gitx (commit - don't forget PT#)
- lein do clean, install
- in project.clj, x.x.x-xx
- gitx (commit - don't forget PT#)
- git tag vx.x.2 -m "xxx"
- git push
- git push --tags
- lein do clean, deploy
- enter ssh key password (matches ldap pw) 2x
- git checkout -b new-branch
- gitx (commit - don't forget PT#)
- git checkout master
- git pull origin master
- git checkout new-branch
- git rebase master
- (interactive rebase as necessary to squash multiple commits)
- lein midje
- git push origin new-branch
- lein v
- git tag -l -n1
- git tag -a -m "Upgrade to new roomkey for new drcfg" v0.1.8
- git push --tags
- lein v (note: effective version updated)
- lein beanstalk deploy rk-metrics-logger-dev (target name comes from project.clj)
- CLJ_LOG_LEVEL=":info,apij.controllers.rates:debug,apij.helpers.rates.search:debug" lein ring server-headless | tee ~/temp/log.txt
- CLJ_LOG_LEVEL=":info,sstj.core:debug" lein ring server-headless | tee ~/temp/log.txt
- CLJ_LOG_LEVEL=":info,apij.controllers.rates:debug,rtdj:debug" lein ring server-headless | tee ~/temp/log.txt
- run app locally:
node env/app roomkey
(or deals, ...) - build app into apij:
node env/build
ctrl-alt-a-p-i -- mash them all, then look for ipv4 address
ssh to it via jumphost
apij/controllers/debugging.clj
curl -X PUT 'http://roomkey:[email protected]/nrepl?api_key=xyzzy'
- enables & disables
ssh -f -N -o ExitOnForwardFailure=yes -L 4005:10.126.10.216:59850 ssh1
lein repl :connect 4005
# see pre-reqs in publishj readme
export AWS_CREDENTIAL_FILE=~/.rk-aws
cd publishj/scripts
./refresh-dev-db.py
(defn t-dump
"Print a data structure to a file so that we may read it in later."
[data]
(spit "t.dump" (binding [*print-dup* true] (pr-str data))))
(defn t-read []
(read-string (slurp "t.dump")))
ssh -L 9200:es-prod:9200 ssh1
open http://kibana.roomkey.net/#/dashboard