Add debug output, listen on localhost

This commit is contained in:
Alexander Neumann 2015-12-19 17:36:48 +01:00
parent edfb31f4fe
commit 3e422c8776
1 changed files with 5 additions and 1 deletions

View File

@ -235,6 +235,7 @@ var minioEnv = map[string]string{
// runMinio prepares and runs a minio server for the s3 backend tests in a
// temporary directory.
func runMinio() (*exec.Cmd, error) {
msg("running minio server\n")
cfgdir, err := ioutil.TempDir("", "minio-config-")
if err != nil {
return nil, err
@ -265,7 +266,10 @@ func runMinio() (*exec.Cmd, error) {
return nil, err
}
cmd := exec.Command("minio", "--config-folder", cfgdir, "server", dir)
cmd := exec.Command("minio",
"--config-folder", cfgdir,
"--address", "127.0.0.1:9000",
"server", dir)
cmd.Stdout = logfile
cmd.Stderr = logfile
err = cmd.Start()