create-nexgen 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +26 -0
- package/src/index.js +108 -0
- package/template/.dockerignore +14 -0
- package/template/.env +58 -0
- package/template/.env.example +59 -0
- package/template/.prettierignore +5 -0
- package/template/.prettierrc +8 -0
- package/template/README.md +447 -0
- package/template/drizzle.config.ts +29 -0
- package/template/eslint.config.js +52 -0
- package/template/gitignore-stub +24 -0
- package/template/package.json +96 -0
- package/template/public/assets/AuthLayout-CbswhpjJ.js +1 -0
- package/template/public/assets/Button-_7aQ7gHL.js +1 -0
- package/template/public/assets/Input-CLNJXmKc.css +1 -0
- package/template/public/assets/Input-z8GI8Aqo.js +1 -0
- package/template/public/assets/InputPasswordToggle-BxlzVGp3.js +1 -0
- package/template/public/assets/InputPasswordToggle-C77FI9Eg.css +1 -0
- package/template/public/assets/Layout-DotR1sQC.js +1 -0
- package/template/public/assets/Refresh-BdqsPPBC.js +1 -0
- package/template/public/assets/admin-ui-CU34rLdN.js +1 -0
- package/template/public/assets/bootstrap-icons-BeopsB42.woff +0 -0
- package/template/public/assets/bootstrap-icons-mSm7cUeB.woff2 +0 -0
- package/template/public/assets/dashboard-CwybEyLc.js +1 -0
- package/template/public/assets/dashboard-Dc4d-Pi7.css +1 -0
- package/template/public/assets/forgetPassword-CKEJaXsq.js +1 -0
- package/template/public/assets/index-Bleyx5dm.js +64 -0
- package/template/public/assets/index-DUw8E6Yg.css +1 -0
- package/template/public/assets/login-DC7PTlQF.js +1 -0
- package/template/public/assets/realtime-test-BPQdrFym.css +1 -0
- package/template/public/assets/realtime-test-tQZ0rBEJ.js +1 -0
- package/template/public/assets/register-3O7Qs28C.js +1 -0
- package/template/public/assets/resetPassword-A5AzMWKs.js +1 -0
- package/template/public/assets/verifyEmail-DDBEQHOv.js +1 -0
- package/template/public/index.html +17 -0
- package/template/src/database/migrations/mysql/0000_init.sql +73 -0
- package/template/src/database/migrations/mysql/meta/0000_snapshot.json +484 -0
- package/template/src/database/migrations/mysql/meta/_journal.json +13 -0
- package/template/src/database/schema.ts +4 -0
- package/template/src/env.ts +107 -0
- package/template/src/framework/cache/cache.ts +81 -0
- package/template/src/framework/database/connection.ts +168 -0
- package/template/src/framework/database/optional-db-drivers.d.ts +9 -0
- package/template/src/framework/database/paginate.ts +200 -0
- package/template/src/framework/database/schema.ts +26 -0
- package/template/src/framework/database/seed.ts +33 -0
- package/template/src/framework/events/dispatcher.ts +57 -0
- package/template/src/framework/facade.ts +27 -0
- package/template/src/framework/http/app.ts +61 -0
- package/template/src/framework/http/cors.ts +19 -0
- package/template/src/framework/http/logger.ts +85 -0
- package/template/src/framework/http/openapi.ts +34 -0
- package/template/src/framework/http/ratelimiter.ts +13 -0
- package/template/src/framework/http/router.ts +76 -0
- package/template/src/framework/http/static.ts +33 -0
- package/template/src/framework/http/validation.ts +24 -0
- package/template/src/framework/kernel.ts +40 -0
- package/template/src/framework/maker-cli/src/index.mjs +51 -0
- package/template/src/framework/maker-cli/src/levels/level-1/env-db.mjs +57 -0
- package/template/src/framework/maker-cli/src/levels/level-1/file-ops.mjs +30 -0
- package/template/src/framework/maker-cli/src/levels/level-1/flags.mjs +16 -0
- package/template/src/framework/maker-cli/src/levels/level-1/help.mjs +24 -0
- package/template/src/framework/maker-cli/src/levels/level-1/naming.mjs +13 -0
- package/template/src/framework/maker-cli/src/levels/level-1/process.mjs +47 -0
- package/template/src/framework/maker-cli/src/levels/level-2/db/core.mjs +299 -0
- package/template/src/framework/maker-cli/src/levels/level-2/db/index.mjs +177 -0
- package/template/src/framework/maker-cli/src/levels/level-2/deploy/core.mjs +635 -0
- package/template/src/framework/maker-cli/src/levels/level-2/deploy/index.mjs +145 -0
- package/template/src/framework/maker-cli/src/levels/level-2/module/core.mjs +707 -0
- package/template/src/framework/maker-cli/src/levels/level-2/module/index.mjs +116 -0
- package/template/src/framework/maker-cli/src/levels/level-2/runtime/build-frontend.mjs +16 -0
- package/template/src/framework/maker-cli/src/levels/level-2/runtime/core.mjs +311 -0
- package/template/src/framework/maker-cli/src/levels/level-2/runtime/index.mjs +71 -0
- package/template/src/framework/maker-cli/stubs/controller/openapi.ts.stub +55 -0
- package/template/src/framework/maker-cli/stubs/controller/openapi.with-model.ts.stub +56 -0
- package/template/src/framework/maker-cli/stubs/controller/plain.ts.stub +57 -0
- package/template/src/framework/maker-cli/stubs/controller/schema.plain.ts.stub +13 -0
- package/template/src/framework/maker-cli/stubs/controller/schema.ts.stub +32 -0
- package/template/src/framework/maker-cli/stubs/deploy/Dockerfile.bun.stub +49 -0
- package/template/src/framework/maker-cli/stubs/deploy/Dockerfile.pnpm.stub +53 -0
- package/template/src/framework/maker-cli/stubs/deploy/Dockerfile.stub +49 -0
- package/template/src/framework/maker-cli/stubs/deploy/Dockerfile.yarn.stub +53 -0
- package/template/src/framework/maker-cli/stubs/deploy/README.stub +55 -0
- package/template/src/framework/maker-cli/stubs/deploy/compose/mysql.server.stub +29 -0
- package/template/src/framework/maker-cli/stubs/deploy/compose/postgres.server.stub +29 -0
- package/template/src/framework/maker-cli/stubs/deploy/compose/sqlite.stub +29 -0
- package/template/src/framework/maker-cli/stubs/deploy/env/mysql.server.stub +73 -0
- package/template/src/framework/maker-cli/stubs/deploy/env/postgres.server.stub +73 -0
- package/template/src/framework/maker-cli/stubs/deploy/env/sqlite.stub +72 -0
- package/template/src/framework/maker-cli/stubs/deploy/scripts/auto-migrate.sh.stub +15 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/README.stub +77 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/compose/noredis.stub +118 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/compose/redis.dev.stub +131 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/compose/redis.stub +129 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/env/local.example.stub +10 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/env/noredis.stub +24 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/env/redis.stub +24 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/nginx-vhost/README.stub +15 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/nginx-vhost/app.example.com.stub +12 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/pgadmin/servers.stub +13 -0
- package/template/src/framework/maker-cli/stubs/deploy/server/redis/redis.conf.stub +6 -0
- package/template/src/framework/maker-cli/stubs/deploy/supervisor/noredis.stub +53 -0
- package/template/src/framework/maker-cli/stubs/deploy/supervisor/redis.stub +69 -0
- package/template/src/framework/maker-cli/stubs/deploy/workflow/local.json.stub +24 -0
- package/template/src/framework/maker-cli/stubs/deploy/workflow/remote.json.stub +20 -0
- package/template/src/framework/maker-cli/stubs/example/console.ts.stub +33 -0
- package/template/src/framework/maker-cli/stubs/example/controller.ts.stub +503 -0
- package/template/src/framework/maker-cli/stubs/example/job.ts.stub +74 -0
- package/template/src/framework/maker-cli/stubs/example/route.api.ts.stub +206 -0
- package/template/src/framework/maker-cli/stubs/example/schema.ts.stub +41 -0
- package/template/src/framework/maker-cli/stubs/job/name.ts.stub +24 -0
- package/template/src/framework/maker-cli/stubs/model/name.mysql.ts.stub +8 -0
- package/template/src/framework/maker-cli/stubs/model/name.postgresql.ts.stub +8 -0
- package/template/src/framework/maker-cli/stubs/model/name.sqlite.ts.stub +8 -0
- package/template/src/framework/maker-cli/stubs/notification/NotificationBell.vue.stub +218 -0
- package/template/src/framework/maker-cli/stubs/notification/controller.ts.stub +85 -0
- package/template/src/framework/maker-cli/stubs/notification/index.vue.stub +211 -0
- package/template/src/framework/maker-cli/stubs/notification/job.ts.stub +12 -0
- package/template/src/framework/maker-cli/stubs/notification/route.api.ts.stub +49 -0
- package/template/src/framework/maker-cli/stubs/notification/schema.ts.stub +25 -0
- package/template/src/framework/maker-cli/stubs/route/api.ts.stub +79 -0
- package/template/src/framework/maker-cli/stubs/route/plain.ts.stub +10 -0
- package/template/src/framework/maker-cli/stubs/schedule/name.ts.stub +35 -0
- package/template/src/framework/maker-cli/stubs/seeder/name.ts.stub +17 -0
- package/template/src/framework/modules/discover.ts +54 -0
- package/template/src/framework/modules/routes.ts +26 -0
- package/template/src/framework/notification/index.ts +109 -0
- package/template/src/framework/queue/clear.ts +20 -0
- package/template/src/framework/queue/queue.ts +213 -0
- package/template/src/framework/queue/ui.ts +104 -0
- package/template/src/framework/queue/worker.ts +33 -0
- package/template/src/framework/realtime/broadcast.ts +27 -0
- package/template/src/framework/realtime/index.ts +1 -0
- package/template/src/framework/realtime/socket-cookie.ts +65 -0
- package/template/src/framework/realtime/socket.ts +132 -0
- package/template/src/framework/realtime/types.ts +6 -0
- package/template/src/framework/realtime/ui.ts +16 -0
- package/template/src/framework/redis/client.ts +126 -0
- package/template/src/framework/scheduler/lock.ts +124 -0
- package/template/src/framework/scheduler/run.ts +26 -0
- package/template/src/framework/scheduler/scheduler.ts +82 -0
- package/template/src/framework/server.ts +147 -0
- package/template/src/framework/session/session.ts +116 -0
- package/template/src/framework/storage/storage.ts +743 -0
- package/template/src/framework/support/cookie.ts +78 -0
- package/template/src/framework/support/jwt.ts +45 -0
- package/template/src/framework/support/lifecycle.ts +35 -0
- package/template/src/framework/support/logger.ts +102 -0
- package/template/src/framework/support/mail.ts +43 -0
- package/template/src/framework/support/password.ts +23 -0
- package/template/src/framework/support/url.ts +25 -0
- package/template/src/middlewares/auth-middleware.ts +98 -0
- package/template/src/middlewares/role-middleware.ts +24 -0
- package/template/src/modules/auth/controllers/auth.controller.ts +445 -0
- package/template/src/modules/auth/controllers/auth.helpers.ts +110 -0
- package/template/src/modules/auth/controllers/auth.schema.ts +102 -0
- package/template/src/modules/auth/controllers/role.controller.ts +25 -0
- package/template/src/modules/auth/database/models/notifications.ts +22 -0
- package/template/src/modules/auth/database/models/role.ts +14 -0
- package/template/src/modules/auth/database/models/user.ts +46 -0
- package/template/src/modules/auth/database/seeders/role.ts +19 -0
- package/template/src/modules/auth/database/seeders/user.ts +33 -0
- package/template/src/modules/auth/jobs/forgetpass.ts +18 -0
- package/template/src/modules/auth/jobs/registeruser.ts +31 -0
- package/template/src/modules/auth/jobs/verifyemail.ts +18 -0
- package/template/src/modules/auth/routes/api.ts +151 -0
- package/template/src/modules/auth/routes/role.ts +39 -0
- package/template/src/modules/welcome/controllers/welcome.controller.ts +14 -0
- package/template/src/modules/welcome/controllers/welcome.schema.ts +6 -0
- package/template/src/modules/welcome/database/models/welcome.ts +6 -0
- package/template/src/modules/welcome/routes/api.ts +20 -0
- package/template/src/resources/index.html +16 -0
- package/template/src/resources/src/App.vue +5 -0
- package/template/src/resources/src/assets/css/styles.css +14934 -0
- package/template/src/resources/src/assets/css/styles.css.map +1 -0
- package/template/src/resources/src/assets/images/favicon/favicon.ico +0 -0
- package/template/src/resources/src/assets/images/favicon/favicon1.ico +0 -0
- package/template/src/resources/src/assets/images/logo-1.png +0 -0
- package/template/src/resources/src/assets/images/logo-dark-sm.png +0 -0
- package/template/src/resources/src/assets/images/logo-dark.png +0 -0
- package/template/src/resources/src/assets/images/logo-dark1.png +0 -0
- package/template/src/resources/src/assets/images/logo-sm.png +0 -0
- package/template/src/resources/src/assets/images/logo1.png +0 -0
- package/template/src/resources/src/assets/images/logo2.png +0 -0
- package/template/src/resources/src/assets/scss/custom.css +217 -0
- package/template/src/resources/src/assets/scss/custom.css.map +1 -0
- package/template/src/resources/src/assets/scss/custom.scss +1100 -0
- package/template/src/resources/src/components/Button.vue +35 -0
- package/template/src/resources/src/components/Checkbox.vue +29 -0
- package/template/src/resources/src/components/FloatButton.vue +36 -0
- package/template/src/resources/src/components/Href.vue +32 -0
- package/template/src/resources/src/components/Input.vue +227 -0
- package/template/src/resources/src/components/InputGroup.vue +153 -0
- package/template/src/resources/src/components/InputPasswordToggle.vue +226 -0
- package/template/src/resources/src/components/Modal.vue +102 -0
- package/template/src/resources/src/components/Pagebar.vue +28 -0
- package/template/src/resources/src/components/Refresh.vue +26 -0
- package/template/src/resources/src/components/Select.vue +390 -0
- package/template/src/resources/src/components/Spinner.vue +42 -0
- package/template/src/resources/src/components/Switch.vue +65 -0
- package/template/src/resources/src/components/TextArea.vue +121 -0
- package/template/src/resources/src/components/Toast.vue +56 -0
- package/template/src/resources/src/components/datatable/DataTableSkeleton.vue +99 -0
- package/template/src/resources/src/components/datatable/Pagination.vue +161 -0
- package/template/src/resources/src/components/datatable/SelectOpption.vue +54 -0
- package/template/src/resources/src/components/datatable/index.vue +237 -0
- package/template/src/resources/src/composables/useAuth.ts +52 -0
- package/template/src/resources/src/composables/useBrowserDetect.ts +5 -0
- package/template/src/resources/src/composables/useDialog.ts +5 -0
- package/template/src/resources/src/composables/useGum.ts +3 -0
- package/template/src/resources/src/composables/usePulse.ts +5 -0
- package/template/src/resources/src/env.d.ts +20 -0
- package/template/src/resources/src/helpers/nformatter.ts +10 -0
- package/template/src/resources/src/helpers/utils.ts +68 -0
- package/template/src/resources/src/layouts/AuthLayout.vue +20 -0
- package/template/src/resources/src/layouts/Layout/Footer.vue +23 -0
- package/template/src/resources/src/layouts/Layout/Header.vue +90 -0
- package/template/src/resources/src/layouts/Layout/Sidebar.vue +137 -0
- package/template/src/resources/src/layouts/Layout/index.vue +76 -0
- package/template/src/resources/src/main.ts +27 -0
- package/template/src/resources/src/pages/auth/forgetPassword.vue +76 -0
- package/template/src/resources/src/pages/auth/login.vue +93 -0
- package/template/src/resources/src/pages/auth/register.vue +130 -0
- package/template/src/resources/src/pages/auth/resetPassword.vue +119 -0
- package/template/src/resources/src/pages/auth/verifyEmail.vue +60 -0
- package/template/src/resources/src/pages/dashboard/index.vue +76 -0
- package/template/src/resources/src/plugins/axios.ts +33 -0
- package/template/src/resources/src/plugins/browserDetect.ts +55 -0
- package/template/src/resources/src/plugins/dialog.ts +167 -0
- package/template/src/resources/src/plugins/gum.ts +343 -0
- package/template/src/resources/src/plugins/pulse.ts +141 -0
- package/template/src/resources/src/plugins/routeProgress.ts +87 -0
- package/template/src/resources/src/router/index.ts +85 -0
- package/template/src/resources/src/stores/admin-ui.ts +148 -0
- package/template/src/resources/src/stores/auth.ts +151 -0
- package/template/src/resources/tsconfig.json +19 -0
- package/template/src/resources/vite.config.ts +43 -0
- package/template/src/storage/logs/app.log +20179 -0
- package/template/src/storage/logs/fatal.log +727 -0
- package/template/tsconfig.json +20 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { createDeploy, importMysqlDumpLocal, importMysqlDumpRemote, runDeploy, runRemoteServer, runRemoteApp, runDeployWorkflow, initDeployWorkflow, runLocalWorkflow, runRemoteWorkflow, initRemoteDeployWorkflow, runPromoteWorkflow } from "./core.mjs";
|
|
2
|
+
|
|
3
|
+
export const deployCommands = new Set([
|
|
4
|
+
"deploy:create",
|
|
5
|
+
"deploy:create:app",
|
|
6
|
+
"deploy:create:server",
|
|
7
|
+
"deploy:create:server:dev",
|
|
8
|
+
"deploy:server",
|
|
9
|
+
"deploy:app",
|
|
10
|
+
"deploy:db:import",
|
|
11
|
+
"deploy:db:import:remote",
|
|
12
|
+
"deploy:workflow",
|
|
13
|
+
"deploy:workflow:init",
|
|
14
|
+
"deploy:workflow:local",
|
|
15
|
+
"deploy:remote:server",
|
|
16
|
+
"deploy:remote:app",
|
|
17
|
+
"deploy:workflow:remote",
|
|
18
|
+
"deploy:workflow:remote:init",
|
|
19
|
+
"deploy:workflow:promote"
|
|
20
|
+
]);
|
|
21
|
+
|
|
22
|
+
/** Register deploy:* subcommands on the CLI program. */
|
|
23
|
+
export function registerDeployCommands(program, rawArgs) {
|
|
24
|
+
const flags = rawArgs.slice(1);
|
|
25
|
+
program
|
|
26
|
+
.command("deploy:create")
|
|
27
|
+
.description("Generate deploy scaffolding files (app + server)")
|
|
28
|
+
.option("--force", "Overwrite existing deploy folder")
|
|
29
|
+
.option("--runtime <name>", "Runtime: node or bun", "node")
|
|
30
|
+
.option("--pm <name>", "Package manager for node runtime: npm, pnpm, yarn", "npm")
|
|
31
|
+
.allowUnknownOption(true)
|
|
32
|
+
.action(async () => createDeploy(flags));
|
|
33
|
+
program
|
|
34
|
+
.command("deploy:create:app")
|
|
35
|
+
.description("Generate app deploy files only")
|
|
36
|
+
.option("--force", "Overwrite existing deploy folder")
|
|
37
|
+
.option("--runtime <name>", "Runtime: node or bun", "node")
|
|
38
|
+
.option("--pm <name>", "Package manager for node runtime: npm, pnpm, yarn", "npm")
|
|
39
|
+
.allowUnknownOption(true)
|
|
40
|
+
.action(async () => createDeploy([...flags, "--app-only"]));
|
|
41
|
+
program
|
|
42
|
+
.command("deploy:create:server")
|
|
43
|
+
.description("Generate server infra files only")
|
|
44
|
+
.option("--force", "Overwrite existing deploy folder")
|
|
45
|
+
.allowUnknownOption(true)
|
|
46
|
+
.action(async () => createDeploy([...flags, "--server-only"]));
|
|
47
|
+
program
|
|
48
|
+
.command("deploy:create:server:dev")
|
|
49
|
+
.description("Generate server infra files only (dev mode with exposed Redis port)")
|
|
50
|
+
.option("--force", "Overwrite existing deploy folder")
|
|
51
|
+
.allowUnknownOption(true)
|
|
52
|
+
.action(async () => createDeploy([...flags, "--server-only", "--dev"]));
|
|
53
|
+
program
|
|
54
|
+
.command("deploy:db:import")
|
|
55
|
+
.description("Import SQL dump into local MySQL container")
|
|
56
|
+
.option("--file <path>", "SQL dump file path", "deploy/nexgen.sql")
|
|
57
|
+
.option("--database <name>", "Target database name", "nexgen")
|
|
58
|
+
.option("--container <name>", "MySQL container name", "mysql-global")
|
|
59
|
+
.option("--user <name>", "MySQL user", "root")
|
|
60
|
+
.option("--password <password>", "MySQL root password (falls back to deploy/server/.env, then deploy/.env)")
|
|
61
|
+
.allowUnknownOption(true)
|
|
62
|
+
.action(async () => importMysqlDumpLocal(flags));
|
|
63
|
+
program
|
|
64
|
+
.command("deploy:db:import:remote")
|
|
65
|
+
.description("Import SQL dump into remote MySQL container via SSH")
|
|
66
|
+
.option("--config <path>", "Remote workflow config path", "deploy/workflow.remote.json")
|
|
67
|
+
.option("--file <path>", "SQL dump file path", "deploy/nexgen.sql")
|
|
68
|
+
.option("--database <name>", "Target database name", "nexgen")
|
|
69
|
+
.option("--container <name>", "MySQL container name", "mysql-global")
|
|
70
|
+
.option("--user <name>", "MySQL user", "root")
|
|
71
|
+
.option("--password <password>", "MySQL root password (falls back to remote deploy/server/.env)")
|
|
72
|
+
.option("--dry-run", "Print commands without executing")
|
|
73
|
+
.allowUnknownOption(true)
|
|
74
|
+
.action(async () => importMysqlDumpRemote(flags));
|
|
75
|
+
program
|
|
76
|
+
.command("deploy:server")
|
|
77
|
+
.description("Start shared server infra (auto-generates files if missing)")
|
|
78
|
+
.allowUnknownOption(true)
|
|
79
|
+
.action(async () => runDeploy("deploy:server"));
|
|
80
|
+
program
|
|
81
|
+
.command("deploy:app")
|
|
82
|
+
.description("Start app stack locally (build + Docker compose up)")
|
|
83
|
+
.allowUnknownOption(true)
|
|
84
|
+
.action(async () => runDeploy("deploy:app"));
|
|
85
|
+
program
|
|
86
|
+
.command("deploy:workflow")
|
|
87
|
+
.description("Run local CI/CD workflow from config file or flags")
|
|
88
|
+
.option("--config <path>", "Workflow config path")
|
|
89
|
+
.option("--server-only", "Run server infra step only")
|
|
90
|
+
.option("--app-only", "Run app deploy step only")
|
|
91
|
+
.option("--refresh", "Regenerate deploy files before running")
|
|
92
|
+
.option("--dry-run", "Print steps without executing")
|
|
93
|
+
.allowUnknownOption(true)
|
|
94
|
+
.action(async () => runDeployWorkflow(flags));
|
|
95
|
+
program
|
|
96
|
+
.command("deploy:workflow:init")
|
|
97
|
+
.description("Create editable local workflow config file")
|
|
98
|
+
.allowUnknownOption(true)
|
|
99
|
+
.action(async () => initDeployWorkflow());
|
|
100
|
+
program
|
|
101
|
+
.command("deploy:workflow:local")
|
|
102
|
+
.description("Run local Docker Desktop test pipeline")
|
|
103
|
+
.option("--server-only", "Run server infra step only")
|
|
104
|
+
.option("--app-only", "Run app deploy step only")
|
|
105
|
+
.option("--refresh", "Regenerate deploy files before running")
|
|
106
|
+
.option("--dry-run", "Print steps without executing")
|
|
107
|
+
.allowUnknownOption(true)
|
|
108
|
+
.action(async () => runLocalWorkflow(flags));
|
|
109
|
+
program
|
|
110
|
+
.command("deploy:remote:server")
|
|
111
|
+
.description("Start shared server infra on remote host (via SSH)")
|
|
112
|
+
.option("--config <path>", "Remote workflow config path")
|
|
113
|
+
.allowUnknownOption(true)
|
|
114
|
+
.action(async () => runRemoteServer(flags));
|
|
115
|
+
program
|
|
116
|
+
.command("deploy:remote:app")
|
|
117
|
+
.description("Build and start app stack on remote host (via SSH)")
|
|
118
|
+
.option("--config <path>", "Remote workflow config path")
|
|
119
|
+
.allowUnknownOption(true)
|
|
120
|
+
.action(async () => runRemoteApp(flags));
|
|
121
|
+
program
|
|
122
|
+
.command("deploy:workflow:remote")
|
|
123
|
+
.description("Upload full repo and deploy on remote Docker host")
|
|
124
|
+
.option("--config <path>", "Remote workflow config path")
|
|
125
|
+
.option("--server-only", "Run server infra step only")
|
|
126
|
+
.option("--app-only", "Run app deploy step only")
|
|
127
|
+
.option("--dry-run", "Print commands without executing")
|
|
128
|
+
.allowUnknownOption(true)
|
|
129
|
+
.action(async () => runRemoteWorkflow(flags));
|
|
130
|
+
program
|
|
131
|
+
.command("deploy:workflow:remote:init")
|
|
132
|
+
.description("Create editable remote workflow config file")
|
|
133
|
+
.allowUnknownOption(true)
|
|
134
|
+
.action(async () => initRemoteDeployWorkflow());
|
|
135
|
+
program
|
|
136
|
+
.command("deploy:workflow:promote")
|
|
137
|
+
.description("Run local workflow then remote workflow")
|
|
138
|
+
.option("--config <path>", "Workflow config path")
|
|
139
|
+
.option("--server-only", "Run server infra step only")
|
|
140
|
+
.option("--app-only", "Run app deploy step only")
|
|
141
|
+
.option("--refresh", "Regenerate deploy files before running")
|
|
142
|
+
.option("--dry-run", "Print commands without executing")
|
|
143
|
+
.allowUnknownOption(true)
|
|
144
|
+
.action(async () => runPromoteWorkflow(flags));
|
|
145
|
+
}
|