From d2fbc1638a5c00115f01a4439f0cc230893abead Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 25 Feb 2023 01:50:30 -0500 Subject: [PATCH] fix: update link docs to remove erroneous copy-paste --- README.md | 10 ++-------- subcommands/link | 8 ++------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d2ea146..f13b98e 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ DOKKU_STATSD_LOLLIPOP_PORT_8125_TCP_ADDR=172.17.0.1 The following will be set on the linked application by default: ``` -STATSD_URL=statsd://lollipop:SOME_PASSWORD@dokku-graphite-lollipop:8125/lollipop +STATSD_URL=statsd://dokku-graphite-lollipop:8125 ``` The host exposed here only works internally in docker containers. If you want your container to be reachable from outside, you should use the `expose` subcommand. Another service can be linked to your app: @@ -233,13 +233,7 @@ dokku graphite:link lollipop playground This will cause `STATSD_URL` to be set as: ``` -statsd2://lollipop:SOME_PASSWORD@dokku-graphite-lollipop:8125/lollipop -``` - -If you specify `STATSD_DATABASE_SCHEME` to equal `http`, we`ll also automatically adjust `STATSD_URL` to match the http interface: - -``` -http://lollipop:SOME_PASSWORD@dokku-graphite-lollipop:${PLUGIN_DATASTORE_PORTS[1]} +statsd2://dokku-graphite-lollipop:8125 ``` ### unlink the graphite service from the app diff --git a/subcommands/link b/subcommands/link index f59f82a..f4cfa04 100755 --- a/subcommands/link +++ b/subcommands/link @@ -23,7 +23,7 @@ service-link-cmd() { #E #E the following will be set on the linked application by default: #E - #E ${PLUGIN_DEFAULT_ALIAS}_URL=${PLUGIN_SCHEME}://lollipop:SOME_PASSWORD@dokku-${PLUGIN_COMMAND_PREFIX}-lollipop:${PLUGIN_DATASTORE_PORTS[0]}/lollipop + #E ${PLUGIN_DEFAULT_ALIAS}_URL=${PLUGIN_SCHEME}://dokku-${PLUGIN_COMMAND_PREFIX}-lollipop:${PLUGIN_DATASTORE_PORTS[0]} #E #E the host exposed here only works internally in docker containers. #E if you want your container to be reachable from outside, you should @@ -37,11 +37,7 @@ service-link-cmd() { #E dokku $PLUGIN_COMMAND_PREFIX:link lollipop playground #E this will cause ${PLUGIN_DEFAULT_ALIAS}_URL to be set as: #E - #E ${PLUGIN_SCHEME}2://lollipop:SOME_PASSWORD@dokku-${PLUGIN_COMMAND_PREFIX}-lollipop:${PLUGIN_DATASTORE_PORTS[0]}/lollipop - #E - #E If you specify ${PLUGIN_VARIABLE}_DATABASE_SCHEME to equal `http`, we'll also automatically adjust ${PLUGIN_DEFAULT_ALIAS}_URL to match the http interface: - #E - #E http://lollipop:SOME_PASSWORD@dokku-${PLUGIN_COMMAND_PREFIX}-lollipop:${PLUGIN_DATASTORE_PORTS[1]} + #E ${PLUGIN_SCHEME}2://dokku-${PLUGIN_COMMAND_PREFIX}-lollipop:${PLUGIN_DATASTORE_PORTS[0]} #A service, service to run command against #A app, app to run command against #F -a|--alias "BLUE_DATABASE", an alternative alias to use for linking to an app via environment variable