Visit https://scout.chasm.net/private-mint
Enter root
cd ~
Create 2.env
cp .env 2.env
Config 2.env
nano 2.env
You Must update a few things in new 2.env file
PORT=
Change 3001 to 3002SCOUT_NAME=
New favorite nameSCOUT_UID=
New one from Step 1: Mint NFTWEBHOOK_API_KEY=
New one from Step 1: Mint NFTWEBHOOK_URL=
Change port: 3001 to 3002
Add this code to the end of the .env file
NODE_ENV=production
# Open Port
sudo ufw allow 3002
# Pull the code from DockerHub
docker pull johnsonchasm/chasm-scout
Note: We update arguments of --env-file
, -p
, --name
flags in below command
# Start the docker file
docker run -d --restart=always --env-file ./2.env -p 3002:3002 --name scout2 johnsonchasm/chasm-scout
# Should get "OK" response
curl localhost:3002
source ./2.env
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WEBHOOK_API_KEY" \
-d '{"body":"{\"model\":\"gemma-7b-it\",\"messages\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant.\"}]}"}' \
$WEBHOOK_URL
docker logs scout2
If your logs is like following pictures, you are fine. Just wait until your node yellow light turns GREEN