mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 02:11:28 +00:00
fix(docker): print auth setup reminder after remote deployment
Users deploying via ccs docker up --host see "Docker stack is running" but hit a broken dashboard because auth is required for remote API access. Now prints a reminder with the exact command to configure auth.
This commit is contained in:
@@ -37,6 +37,13 @@ export async function handleUp(args: string[]): Promise<void> {
|
||||
console.log(ok(`Docker stack is running${parsed.host ? ` on ${parsed.host}` : ' locally'}.`));
|
||||
console.log(info(`Dashboard port: ${port}`));
|
||||
console.log(info(`CLIProxy port: ${proxyPort}`));
|
||||
if (parsed.host) {
|
||||
console.log(
|
||||
info(
|
||||
'Remote access requires dashboard auth. Run inside the container:\n docker exec -it ccs-cliproxy ccs config auth setup'
|
||||
)
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(
|
||||
box(fail(error instanceof Error ? error.message : String(error)), {
|
||||
|
||||
Reference in New Issue
Block a user