add the Run part on the subdomains example code

Gerasimos (Makis) Maropoulos 2019-07-03 01:37:14 +03:00
parent 3e11e9e37b
commit 806ad5e7aa
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -41,6 +41,10 @@ admin.Get("/", func(ctx iris.Context) {
admin.Get("/hey", func(ctx iris.Context) {
ctx.Writef("HEY FROM admin.mydomain.com/hey")
})
// [other routes here...]
app.Run(iris.Addr("mydomain.com:80"))
```
For local development you'll have to edit your hosts, for example in windows operating system open the `C:\Windows\System32\Drivers\etc\hosts` file and append: