chore: Add dry-run mode and configure logger for operation mode logging
This commit is contained in:
parent
fbe1e4ed05
commit
058ff42b4a
2 changed files with 22 additions and 4 deletions
17
.idea/workspace.xml
generated
17
.idea/workspace.xml
generated
|
|
@ -4,7 +4,7 @@
|
||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="d7a71994-2699-4ae4-9fd2-ee13b7f33d35" name="Changes" comment="chore: Add missing ".js" extensions to imports and improve Node.js compatibility for dynamic schema loading" />
|
<list default="true" id="d7a71994-2699-4ae4-9fd2-ee13b7f33d35" name="Changes" comment="chore: Update IntelliJ workspace and fix Docker image tag in workflow" />
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
<option name="number" value="Default" />
|
<option name="number" value="Default" />
|
||||||
<option name="presentableId" value="Default" />
|
<option name="presentableId" value="Default" />
|
||||||
<updated>1768273021451</updated>
|
<updated>1768273021451</updated>
|
||||||
<workItem from="1768273025985" duration="8686000" />
|
<workItem from="1768273025985" duration="8988000" />
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00001" summary="chore: Update IntelliJ workspace settings and add GitHub Actions workflow for Docker deployment">
|
<task id="LOCAL-00001" summary="chore: Update IntelliJ workspace settings and add GitHub Actions workflow for Docker deployment">
|
||||||
<option name="closed" value="true" />
|
<option name="closed" value="true" />
|
||||||
|
|
@ -151,7 +151,15 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1768311738008</updated>
|
<updated>1768311738008</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="5" />
|
<task id="LOCAL-00005" summary="chore: Update IntelliJ workspace and fix Docker image tag in workflow">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1768312137448</created>
|
||||||
|
<option name="number" value="00005" />
|
||||||
|
<option name="presentableId" value="LOCAL-00005" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1768312137448</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="6" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
|
@ -174,6 +182,7 @@
|
||||||
<MESSAGE value="refactor!: Update Node.js version to 24.12.0, enhance GraphQL schema structure, and improve dynamic schema loading logic" />
|
<MESSAGE value="refactor!: Update Node.js version to 24.12.0, enhance GraphQL schema structure, and improve dynamic schema loading logic" />
|
||||||
<MESSAGE value="chore: Update IntelliJ workspace settings and add GitHub Actions workflow for Docker deployment" />
|
<MESSAGE value="chore: Update IntelliJ workspace settings and add GitHub Actions workflow for Docker deployment" />
|
||||||
<MESSAGE value="chore: Add missing ".js" extensions to imports and improve Node.js compatibility for dynamic schema loading" />
|
<MESSAGE value="chore: Add missing ".js" extensions to imports and improve Node.js compatibility for dynamic schema loading" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="chore: Add missing ".js" extensions to imports and improve Node.js compatibility for dynamic schema loading" />
|
<MESSAGE value="chore: Update IntelliJ workspace and fix Docker image tag in workflow" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="chore: Update IntelliJ workspace and fix Docker image tag in workflow" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
|
|
@ -1,5 +1,14 @@
|
||||||
import {startAPi} from "./api/start.js";
|
import {startAPi} from "./api/start.js";
|
||||||
|
import {logger} from "./logging/logger.js";
|
||||||
|
|
||||||
|
// Determine and log the operation mode first:
|
||||||
|
// Controller and api share the same code base
|
||||||
|
// but may run independently
|
||||||
|
|
||||||
|
if (process.env.DRY_RUN) {
|
||||||
|
logger.info("Dry run mode - exiting directly without starting anything")
|
||||||
|
process.exit(0)
|
||||||
|
}
|
||||||
startAPi()
|
startAPi()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue