Skip to content

Commit

Permalink
Updated run configuration for IDEA and added npm scripts for prelaunc…
Browse files Browse the repository at this point in the history
…h debug scripts.
  • Loading branch information
vvuwei committed Jun 30, 2023
1 parent f60118d commit d56f45d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .run/Run testnet.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
<directory value="$PROJECT_DIR$/cmd/mempool" />
<filePath value="$PROJECT_DIR$/cmd/mempool/main.go" />
<method v="2">
<option name="ToolBeforeRunTask" enabled="true" actionId="Tool_External Tools_Compose up" />
<option name="NpmBeforeRunTask" enabled="true">
<package-json value="$PROJECT_DIR$/.run/package.json" />
<command value="start" />
<node-interpreter value="project" />
<envs />
</option>
</method>
</configuration>
</component>
6 changes: 6 additions & 0 deletions .run/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"scripts": {
"start": "docker compose up -d db hasura prometheus",
"stop": "docker compose down -v"
}
}

0 comments on commit d56f45d

Please sign in to comment.