Skip to content

Commit

Permalink
mongo-console now connects to the standart user URL Fixes #117
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyko0 committed Aug 17, 2015
1 parent 26b9d8f commit 09a4965
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion db/mongo_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func MongoConsole(app string) error {

mongoURL, user, password, err := dbURL(app, "MONGO", []string{"mongodb://"})
mongoURL, user, password, err := dbURL(app, "SCALINGO_MONGO", []string{"mongodb://"})
if err != nil {
return errgo.Mask(err)
}
Expand Down
2 changes: 1 addition & 1 deletion db/mysql_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func MySQLConsole(app string) error {

mySQLURL, user, password, err := dbURL(app, "MYSQL", []string{"mysql://", "mysql2://"})
mySQLURL, user, password, err := dbURL(app, "SCALINGO_MYSQL", []string{"mysql://", "mysql2://"})
if err != nil {
return errgo.Mask(err)
}
Expand Down
2 changes: 1 addition & 1 deletion db/pgsql_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

func PgSQLConsole(app string) error {

postgreSQLURL, user, password, err := dbURL(app, "POSTGRESQL", []string{"postgres://"})
postgreSQLURL, user, password, err := dbURL(app, "SCALINGO_POSTGRESQL", []string{"postgres://"})
if err != nil {
return errgo.Mask(err)
}
Expand Down
2 changes: 1 addition & 1 deletion db/redis_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

func RedisConsole(app string) error {
redisURL, _, password, err := dbURL(app, "REDIS", []string{"redis://"})
redisURL, _, password, err := dbURL(app, "SCALINGO_REDIS", []string{"redis://"})
if err != nil {
return errgo.Mask(err)
}
Expand Down

0 comments on commit 09a4965

Please sign in to comment.