feat: migrations
This commit is contained in:
20
server/prod.go
Normal file
20
server/prod.go
Normal file
@ -0,0 +1,20 @@
|
||||
//go:build !dev
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"log"
|
||||
)
|
||||
|
||||
//go:embed all:client
|
||||
var cFS embed.FS
|
||||
|
||||
//go:embed db/migrations/*.sql
|
||||
var dFS embed.FS
|
||||
|
||||
func init() {
|
||||
log.Println("initializing for production")
|
||||
clientFS = &cFS
|
||||
dbFS = &dFS
|
||||
}
|
Reference in New Issue
Block a user