iris icon indicating copy to clipboard operation
iris copied to clipboard

StaticWeb don't render index.html

Open xuehuizhang opened this issue 6 years ago • 3 comments

i set b.StaticWeb("./public/","/public")

but http://localhost:8080/public

image

image

xuehuizhang avatar Dec 24 '19 05:12 xuehuizhang

@xuehuizhang there is no StaticWeb. The last releases have the HandleDir method instead, which contains various fixes and improvements. Please upgrade your Iris, you are using old version.

Follow the documentation at:

  • https://github.com/kataras/iris/wiki/Installation
  • https://github.com/kataras/iris/wiki/File-server

kataras avatar Dec 24 '19 09:12 kataras

Thank you

xuehuizhang avatar Dec 24 '19 10:12 xuehuizhang

You are very welcomed, don't hesitate to ask if you need further assistance!

kataras avatar Dec 24 '19 11:12 kataras