feat: set addr from config
This commit is contained in:
parent
608f435fb1
commit
d7eba0a5d6
@ -20,6 +20,8 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
addr: :8080
|
||||
|
||||
db:
|
||||
# DB host
|
||||
host: 127.0.0.1
|
||||
|
@ -110,7 +110,7 @@ func run() error {
|
||||
})
|
||||
})
|
||||
|
||||
r.Run(":8080")
|
||||
r.Run(viper.GetString("addr"))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user