Merge pull request #9 from dokku/lg-database-in-url
Add database name in DSN
This commit is contained in:
@@ -250,7 +250,7 @@ service_url() {
|
|||||||
|
|
||||||
local ID="$(cat "$SERVICE_ROOT/ID")"
|
local ID="$(cat "$SERVICE_ROOT/ID")"
|
||||||
local IP="$(get_container_ip "$ID")"
|
local IP="$(get_container_ip "$ID")"
|
||||||
echo "$PLUGIN_SCHEME://$IP:${PLUGIN_DATASTORE_PORTS[0]}"
|
echo "$PLUGIN_SCHEME://$IP:${PLUGIN_DATASTORE_PORTS[0]}/$SERVICE"
|
||||||
}
|
}
|
||||||
|
|
||||||
is_container_status () {
|
is_container_status () {
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ teardown() {
|
|||||||
|
|
||||||
@test "($PLUGIN_COMMAND_PREFIX:info) success" {
|
@test "($PLUGIN_COMMAND_PREFIX:info) success" {
|
||||||
run dokku "$PLUGIN_COMMAND_PREFIX:info" l
|
run dokku "$PLUGIN_COMMAND_PREFIX:info" l
|
||||||
assert_contains "${lines[*]}" "DSN: mongodb://172.17.0.34:27017"
|
assert_contains "${lines[*]}" "DSN: mongodb://172.17.0.34:27017/l"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user