path
This commit is contained in:
3
db/db.go
3
db/db.go
@@ -55,7 +55,7 @@ var (
|
||||
|
||||
func init() {
|
||||
var err error
|
||||
DB, err = sql.Open("postgres", "postgres://itsc@localhost:5432/itsc?sslmode=disable")
|
||||
DB, err = sql.Open("postgres", os.Getenv("POSTGRES_CONNSTR"))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
@@ -63,6 +63,7 @@ func init() {
|
||||
if len(os.Args) > 1{
|
||||
if os.Args[1] == "install" {
|
||||
install()
|
||||
os.Exit(0)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user