Skip to content

Commit

Permalink
fix env script for running local krakend with flexible config
Browse files Browse the repository at this point in the history
  • Loading branch information
dhontecillas committed Jul 17, 2024
1 parent 3230b32 commit 78ed120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/krakend/extended_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export FC_CONFIG=$PWD/fc_config.local.json

# this alias will run the krakend in a different port of that used by the dockerized krakend
# from the docker-compose file:
alias r='./krakend run --config ./extended/krakend.json --port 8666'
alias r='./krakend run --config ./extended/krakend.tmpl --port 8666'

# this alias allows to check the configuration and the issues it might have
alias d='clear; ../../krakend check -c extended/krakend.json 2> out.err.dbg | tee out.dbg'
alias d='clear; ../../krakend check -c extended/krakend.tmpl 2> out.err.dbg | tee out.dbg'

# this alias provides info about the composed output file in case of error
alias i='cat out.err.dbg | grep "ERROR parsing the configuration file" | sed "s/.*tmp\(.*\)json.*/\/tmp\/\1json/g" | xargs cat'

0 comments on commit 78ed120

Please sign in to comment.