Skip to content

Commit

Permalink
added stop command
Browse files Browse the repository at this point in the history
  • Loading branch information
beeinger committed May 3, 2024
1 parent ecdbfcc commit 46249b9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ echo "Restart the program..."
./scripts/compile.sh
'''

[tasks.stop]
workspace = false
description = "Stop the L2 indexer."
script = '''
echo "Stop the program..."
./scripts/stop.sh
'''

[tasks.cleanup]
workspace = false
description = "Clean up the setup by running the cleanup script."
Expand Down
9 changes: 9 additions & 0 deletions scripts/stop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Step 1: Stop the application using PM2
echo "Starting the application using PM2..."
pm2 stop pm2.config.js

# Step 2: Stop docker container
echo "Stopping the docker container..."
docker compose down

echo "Stopped."

0 comments on commit 46249b9

Please sign in to comment.