Skip to content

Commit

Permalink
Adding steps for running nodes with PM2
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehewitt15 committed Aug 15, 2024
2 parents 48c9ae9 + cb1d516 commit 3ac7f72
Show file tree
Hide file tree
Showing 8 changed files with 2,117 additions and 177 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Docker Multi Platform Builds

on:
workflow_dispatch:
workflow_dispatch:
push:
branches:
- 'main'
- 'develop'
tags:
- 'v*.*.*'
pull_request:
Expand Down
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@ Build and run the node using Docker:
2. **Run the Docker container:**
`docker run -e PRIVATE_KEY=your_private_key_here ocean-node:mybuild`

## Running Ocean Nodes with PM2

PM2 is a process manager that makes it easy to manage and monitor your Node.js applications.

1. Install PM2

```bash
npm install -g pm2
```

2. Start the Ocean Node with PM2

```bash
pm2 start npm --name "ocean-node" -- run start
```

3. Monitor and Manage the Node

You can use the following PM2 commands to manage your Ocean Node:

```bash
pm2 list # View running processes
pm2 logs ocean-node # View logs
pm2 restart ocean-node # Restart the node
pm2 stop ocean-node # Stop the node
pm2 delete ocean-node # Delete the process
```

## Running Ocean Nodes Locally

### Prerequisites
Expand Down
Loading

0 comments on commit 3ac7f72

Please sign in to comment.