Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gluk64 committed May 8, 2019
1 parent 406df8a commit 4fa2f80
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ db-reset: confirm_action db-drop db-setup
migrate: confirm_action
@cd src/storage && diesel migration run

redeploy: deploy-contracts db-reset
redeploy: confirm_action deploy-contracts db-reset

db-drop: confirm_action
@# this is used to clear the produciton db; cannot do `diesel database reset` because we don't own the db
Expand Down
1 change: 1 addition & 0 deletions bin/db-setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ echo DATABASE_URL=$DATABASE_URL
diesel database setup
diesel migration run

echo "insert config: CONTRACT_ADDR=$CONTRACT_ADDR"
psql $DATABASE_URL -c "INSERT INTO server_config (contract_addr) VALUES ('$CONTRACT_ADDR')"
2 changes: 1 addition & 1 deletion bin/deploy-contracts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo yarn deploy
yarn deploy | tee ../deploy.log
cd ..

NEW_CONTRACT=`grep -A999 "Starting migrations" deploy.log | grep -A4 "'FranklinProxy'" | grep "contract address" | grep -oE '0x(.+)' \
export NEW_CONTRACT=`grep -A999 "Starting migrations" deploy.log | grep -A4 "'FranklinProxy'" | grep "contract address" | grep -oE '0x(.+)' \
| sed -n "s/0x//p"`

if [ ! -z "$NEW_CONTRACT" ]
Expand Down
5 changes: 5 additions & 0 deletions bin/kubectl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

. .setup_env

/usr/local/bin/kubectl "$@"
2 changes: 1 addition & 1 deletion docs/setup-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Edit the lines below and add them to your shell profile file (e.g. `~/.bash_prof
# Add path here:
export FRANKLIN_HOME=/path/to/franklin
export PATH=$PATH:$FRANKLIN_HOME/bin
export PATH=$FRANKLIN_HOME/bin:$PATH
complete -W "\`grep -oE '^[a-zA-Z0-9_.-]+:([^=]|$)' $FRANKLIN_HOME/Makefile | sed 's/[^a-zA-Z0-9_.-]*$//'\`" franklin
# If you're like me, uncomment:
Expand Down
1 change: 0 additions & 1 deletion etc/kube/franklin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ spec:
resources:
requests:
memory: "1Gi"
cpu: "2"
envFrom:
- secretRef:
name: franklin-secret
Expand Down

0 comments on commit 4fa2f80

Please sign in to comment.