Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/subgraph-oz/commit/fbe929474b39d2c542e670fa612d580ca9976bec?style=unified&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
27 additions and
3 deletions
@ -7,7 +7,6 @@ import (
"github.com/subgraph/oz/fs"
"github.com/subgraph/oz/xpra"
"io"
"os"
"os/exec"
"os/user"
"path"
@ -178,9 +177,34 @@ func (sbox *Sandbox) startXpraClient() {
sbox . fs . Xpra ( ) ,
sbox . profile . Name ,
sbox . daemon . log )
sbox . xpra . Process . Stdout = os . Stdout
sbox . xpra . Process . Stderr = os . Stdout
if sbox . daemon . config . LogXpra {
sbox . setupXpraLogging ( )
}
if err := sbox . xpra . Process . Start ( ) ; err != nil {
sbox . daemon . Warning ( "Failed to start xpra client: %v" , err )
}
}
func ( sbox * Sandbox ) setupXpraLogging ( ) {
stdout , err := sbox . xpra . Process . StdoutPipe ( )
if err != nil {
sbox . daemon . Warning ( "Failed to create xpra stdout pipe: %v" , err )
return
}
stderr , err := sbox . xpra . Process . StderrPipe ( )
if err != nil {
stdout . Close ( )
sbox . daemon . Warning ( "Failed to create xpra stderr pipe: %v" , err )
}
go sbox . logPipeOutput ( stdout , "xpra-stdout" )
go sbox . logPipeOutput ( stderr , "xpra-stderr" )
}
func ( sbox * Sandbox ) logPipeOutput ( p io . Reader , label string ) {
scanner := bufio . NewScanner ( p )
for scanner . Scan ( ) {
line := scanner . Text ( )
sbox . daemon . log . Info ( "(%s) %s" , label , line )
}
}