Closed kshitij10496 closed 5 years ago
Currently, the server.go program expects PORT and DATABASE_URL to be set in order to run the application. Use Kelsey Hightower's envconfig library for reading app configuration variables into the program rather than using os.Getenv.
server.go
PORT
DATABASE_URL
envconfig
os.Getenv
Refer: server.go
Currently, the
server.go
program expectsPORT
andDATABASE_URL
to be set in order to run the application. Use Kelsey Hightower'senvconfig
library for reading app configuration variables into the program rather than usingos.Getenv
.Refer: server.go