Get default URL from environment variable MIGRATE_URL

This commit is contained in:
fazal 2015-06-17 13:07:18 +05:00
parent 9bb037339f
commit d8df2cd1cc
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ import (
"time"
)
var url = flag.String("url", "", "")
var url = flag.String("url", os.Getenv("MIGRATE_URL"), "")
var migrationsPath = flag.String("path", "", "")
var version = flag.Bool("version", false, "Show migrate version")