mirror of
https://github.com/aleleba/create-react-go-ssr.git
synced 2025-07-28 18:48:13 -06:00
Configure the build and the start of the app in prod. Updating to version 0.1.1
This commit is contained in:
@ -8,6 +8,7 @@ import (
|
||||
func LoadEnv() {
|
||||
err := godotenv.Load("../../.env")
|
||||
if err != nil {
|
||||
log.Fatal("Error loading .env file")
|
||||
// log.Fatal("Error loading .env file")
|
||||
log.Println("Is no .env file")
|
||||
}
|
||||
}
|
@ -21,6 +21,10 @@ func main() {
|
||||
//Getting the port from the environment
|
||||
port := os.Getenv("PORT")
|
||||
|
||||
if(port == "") {
|
||||
port = "80"
|
||||
}
|
||||
|
||||
paths := utils.GetRoutes()
|
||||
|
||||
e := echo.New()
|
||||
|
Reference in New Issue
Block a user