cmd/storj-sim: Fix path to admin UI assets folder
The admin UI assets aren't inside of the `web` directory they are directly in the `satellite` one. The invalid path provoked that storj-sim generated a satellite configuration with an invalid path to the Admin UI static assets provoking that it didn't load the UI by default. Change-Id: I49fb289377f51634057173690fbd8cf863ca9a9d
This commit is contained in:
parent
3d1b469f35
commit
aa913e63db
@ -42,9 +42,7 @@ const (
|
||||
folderPermissions = 0744
|
||||
)
|
||||
|
||||
var (
|
||||
defaultAccess = "12edqtGZnqQo6QHwTB92EDqg9B1WrWn34r7ALu94wkqXL4eXjBNnVr6F5W7GhJjVqJCqxpFERmDR1dhZWyMt3Qq5zwrE9yygXeT6kBoS9AfiPuwB6kNjjxepg5UtPPtp4VLp9mP5eeyobKQRD5TsEsxTGhxamsrHvGGBPrZi8DeLtNYFMRTV6RyJVxpYX6MrPCw9HVoDQbFs7VcPeeRxRMQttSXL3y33BJhkqJ6ByFviEquaX5R2wjQT2Kx"
|
||||
)
|
||||
var defaultAccess = "12edqtGZnqQo6QHwTB92EDqg9B1WrWn34r7ALu94wkqXL4eXjBNnVr6F5W7GhJjVqJCqxpFERmDR1dhZWyMt3Qq5zwrE9yygXeT6kBoS9AfiPuwB6kNjjxepg5UtPPtp4VLp9mP5eeyobKQRD5TsEsxTGhxamsrHvGGBPrZi8DeLtNYFMRTV6RyJVxpYX6MrPCw9HVoDQbFs7VcPeeRxRMQttSXL3y33BJhkqJ6ByFviEquaX5R2wjQT2Kx"
|
||||
|
||||
const (
|
||||
// The following values of peer class and endpoints are used
|
||||
@ -242,7 +240,7 @@ func newNetwork(flags *Flags) (*Processes, error) {
|
||||
|
||||
processes := NewProcesses(flags.Directory, flags.FailFast)
|
||||
|
||||
var host = flags.Host
|
||||
host := flags.Host
|
||||
versioncontrol := processes.New(Info{
|
||||
Name: "versioncontrol/0",
|
||||
Executable: "versioncontrol",
|
||||
@ -353,7 +351,7 @@ func newNetwork(flags *Flags) (*Processes, error) {
|
||||
"--debug.addr", net.JoinHostPort(host, port(satellitePeer, i, debugHTTP)),
|
||||
|
||||
"--admin.address", net.JoinHostPort(host, port(satellitePeer, i, adminHTTP)),
|
||||
"--admin.static-dir", filepath.Join(storjRoot, "web/satellite/admin/ui/build"),
|
||||
"--admin.static-dir", filepath.Join(storjRoot, "satellite/admin/ui/build"),
|
||||
},
|
||||
"run": {"api"},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user