Skip to content

Instantly share code, notes, and snippets.

@peterbourgon
Created December 21, 2014 17:42
Show Gist options
  • Save peterbourgon/ee58161e39f9823d04cd to your computer and use it in GitHub Desktop.
Save peterbourgon/ee58161e39f9823d04cd to your computer and use it in GitHub Desktop.
./mysvc \
-identity foobar \
-upstream.endpoint "$UPSTREAM_ENDPOINT" \
-baz.dsn "$BAZ_DSN" \
-read.timeout "$READ_TIMEOUT" \
-write.timeout "$WRITE_TIMEOUT" \
# The environment changes based on dev/staging/prod.
# Production might look like e.g.
#
# UPSTREAM_ENDPOINT="http://api.foosvc.prod.upstream.internal.net"
# BAZ_DSN="user:pass@tcp(mysql.masterdb.prod.data.internal.net:3306)/master_production?parseTime=true&charset=utf8"
# READ_TIMEOUT="50ms"
# WRITE_TIMEOUT="250ms"
#
# And the dev environment might look like e.g.
#
# UPSTREAM_ENDPOINT="http://localhost:8081"
# BAZ_DSN="root:root@tcp(localhost:3306)/fixture_db?parseTime=true&charset=utf8"
# READ_TIMEOUT="1s"
# WRITE_TIMEOUT="5s"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment