api: add COMMENTO_STATIC environment variable
Closes https://gitlab.com/commento/commento-ce/issues/2
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func performMigrations() error {
|
||||
return performMigrationsFromDir("db")
|
||||
return performMigrationsFromDir(os.Getenv("STATIC") + "/db")
|
||||
}
|
||||
|
||||
func performMigrationsFromDir(dir string) error {
|
||||
|
||||
Reference in New Issue
Block a user