Created
December 21, 2014 17:42
-
-
Save peterbourgon/ee58161e39f9823d04cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./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