We can now use environment values to dictate which values are used for the DB and the domain. This is a simple solution, but for now, it works! This will merge into master and we can then see it live in action!
13 lines
178 B
Go
13 lines
178 B
Go
package main
|
|
|
|
import "github.com/haydenhargreaves/Potion/internal/app/server"
|
|
|
|
const PORT = 3000
|
|
|
|
func main() {
|
|
s := server.Init(PORT).Setup()
|
|
defer s.DB.Close()
|
|
|
|
s.Start()
|
|
}
|