Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/subgraph-oz/commit/5a2b5ab3755852f863114dd1539a149821fc437b?style=split&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
12 additions and
1 deletions
@ -94,6 +94,10 @@ func runApplication() {
Name : "kill" ,
Name : "kill" ,
Action : handleKill ,
Action : handleKill ,
} ,
} ,
{
Name : "killall" ,
Action : handleKillall ,
} ,
{
{
Name : "logs" ,
Name : "logs" ,
Action : handleLogs ,
Action : handleLogs ,
@ -196,6 +200,13 @@ func getSandboxById(id int) (*daemon.SandboxInfo, error) {
return nil , nil
return nil , nil
}
}
func handleKillall ( c * cli . Context ) {
if err := daemon . KillAllSandboxes ( ) ; err != nil {
fmt . Fprintf ( os . Stderr , "Killall command failed: %s.\n" , err )
os . Exit ( 1 )
}
}
func handleKill ( c * cli . Context ) {
func handleKill ( c * cli . Context ) {
if len ( c . Args ( ) ) == 0 {
if len ( c . Args ( ) ) == 0 {
fmt . Fprintf ( os . Stderr , "Need a sandbox id to kill\n" )
fmt . Fprintf ( os . Stderr , "Need a sandbox id to kill\n" )
@ -203,7 +214,7 @@ func handleKill(c *cli.Context) {
}
}
if c . Args ( ) [ 0 ] == "all" {
if c . Args ( ) [ 0 ] == "all" {
if err := daemon . KillAllSandboxes ( ) ; err != nil {
if err := daemon . KillAllSandboxes ( ) ; err != nil {
fmt . Fprintf ( os . Stderr , "Kill command failed: %s.\n", err )
fmt . Fprintf ( os . Stderr , "Kill all command failed: %s.\n", err )
os . Exit ( 1 )
os . Exit ( 1 )
}
}
return
return