mirror of
https://github.com/moghtech/komodo.git
synced 2026-10-28 08:00:37 +00:00
description of mongo mount
This commit is contained in:
@@ -29,15 +29,12 @@ const FinalConfig = (p: {
|
||||
</Text>
|
||||
<Newline />
|
||||
<Box flexDirection="column" borderColor="green" borderStyle="round">
|
||||
<Text>
|
||||
mongo url:{" "}
|
||||
<Text color="green" bold>
|
||||
{p.config.mongoURL}
|
||||
</Text>
|
||||
<Text color="green">
|
||||
mongo url: <Text color="white">{p.config.mongoURL}</Text>
|
||||
</Text>
|
||||
<Text>
|
||||
<Text color={p.config.useBuilds ? "green" : "red"}>
|
||||
use builds:{" "}
|
||||
<Text color={p.config.useBuilds ? "green" : "red"} bold>
|
||||
<Text color="white">
|
||||
{p.config.useBuilds ? "yes" : "no"}
|
||||
</Text>
|
||||
</Text>
|
||||
|
||||
@@ -2,9 +2,7 @@ import { CommandLogError } from "@monitor/types";
|
||||
import { Box, Newline, Text, useInput } from "ink";
|
||||
import React, { Fragment, useState } from "react";
|
||||
import { startMongo } from "../../helpers/mongo";
|
||||
import { useBlinker } from "../../hooks";
|
||||
import LabelledSelector from "../util/LabelledSelector";
|
||||
import Selector from "../util/Selector";
|
||||
import YesNo from "../util/YesNo";
|
||||
|
||||
const RESTART_MODES = ["no", "on-failure", "always", "unless-stopped"];
|
||||
@@ -164,7 +162,7 @@ const SetupMongo = ({
|
||||
)}
|
||||
{stage === "volume" && volume === undefined && (
|
||||
<LabelledSelector
|
||||
label="use volume:"
|
||||
label="mount data on local filesystem:"
|
||||
items={["yes", "no"]}
|
||||
onSelect={(use) => {
|
||||
if (use === "yes") {
|
||||
@@ -178,7 +176,7 @@ const SetupMongo = ({
|
||||
)}
|
||||
{(volume || volume === false) && (
|
||||
<Text color="green">
|
||||
volume:{" "}
|
||||
{volume ? "mount folder: " : "mount: "}
|
||||
<Text color="white">
|
||||
{volume || "no"}
|
||||
{stage === "volume" && blinker ? "|" : ""}
|
||||
@@ -242,7 +240,7 @@ const SetupMongo = ({
|
||||
)}
|
||||
{stage === "finish" && result && !result.isError && (
|
||||
<Text>
|
||||
press{" "}
|
||||
Success! Press{" "}
|
||||
<Text color="green" bold>
|
||||
enter
|
||||
</Text>{" "}
|
||||
|
||||
Reference in New Issue
Block a user