goaltools / goal

Goal is a toolkit for high productivity web development in Go language in the spirit of Revel Framework that is built around the concept of code generation.
BSD 2-Clause "Simplified" License
87 stars 3 forks source link

Removed localhost listening address #32

Closed davidhunterxyz closed 8 years ago

ghost commented 8 years ago

@DavidHunter Thanks, :+1:.

Background info: This PR makes the skeleton app to listen on port 8080 of all available hosts.

P.S.: We need to document how configuration works:

  1. Every component has its own default parameter values (e.g. Controllers, Server).
  2. Those defaults can be overridden by INI configuration file. * _INI configuration file may contain Environment variables, e.g. ${OPENSHIFT_PORT}._
  3. It is possible to override values of INI configuration file when running the app using flags.

For illustration, default http.addr that is defined inside server.go is :8080. We can override it by adding http.addr = smth to config/app.ini. And we can override the value of configuration file by running the app as bin/run --http.addr="smth_else".