mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
Fix some plugins
This commit is contained in:
parent
648bd0d335
commit
2dac93104a
|
@ -18,13 +18,21 @@ package main
|
|||
|
||||
import (
|
||||
"github.com/kataras/iris"
|
||||
"github.com/kataras/iris/config"
|
||||
"github.com/kataras/iris/plugin/editor"
|
||||
)
|
||||
|
||||
func main(){
|
||||
e := editor.New("username","password").Port(4444).Dir("/path/to/the/client/side/directory")
|
||||
editorConfig:= config.Editor {
|
||||
Host: "127.0.0.1",
|
||||
Port: 4444,
|
||||
WorkingDir: "/path/to/the/client/side/directory",
|
||||
Username: "myusername",
|
||||
Password: "mypassword"
|
||||
|
||||
iris.Plugins.Add(e)
|
||||
}
|
||||
|
||||
iris.Plugins.Add(editor.New(editorConfig))
|
||||
|
||||
iris.Get("/", func (ctx *iris.Context){})
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ func (i *iriscontrol) initializeChild() {
|
|||
}
|
||||
})
|
||||
|
||||
go i.child.Listen(i.parent.HTTPServer.VirtualHostname() + strconv.Itoa(i.port))
|
||||
go i.child.Listen(i.parent.HTTPServer.VirtualHostname() + ":" + strconv.Itoa(i.port))
|
||||
}
|
||||
|
||||
func (i *iriscontrol) parentIsRunning() bool {
|
||||
|
|
Loading…
Reference in New Issue
Block a user