Merge pull request #172 from Permissionless-Software-Foundation/ct-unstable

Updating production script
This commit is contained in:
Chris Troutner
2022-01-17 17:15:25 -08:00
committed by GitHub
3 changed files with 12 additions and 1 deletions
+1
View File
@@ -47,6 +47,7 @@ USER safeuser
WORKDIR /home/safeuser WORKDIR /home/safeuser
RUN git clone https://github.com/Permissionless-Software-Foundation/bch-api RUN git clone https://github.com/Permissionless-Software-Foundation/bch-api
WORKDIR /home/safeuser/bch-api WORKDIR /home/safeuser/bch-api
RUN git checkout ct-unstable
RUN npm install --silent RUN npm install --silent
# Generate documentation # Generate documentation
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
# Remove all untagged docker images.
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
+6 -1
View File
@@ -40,7 +40,7 @@ export REDIS_HOST=172.17.0.1
export TOKENSECRET=somelongsecretvalue export TOKENSECRET=somelongsecretvalue
# So that bch-api can call bch-js locally. # So that bch-api can call bch-js locally.
export LOCAL_RESTURL=http://127.0.0.1:3000/v4/ export LOCAL_RESTURL=http://127.0.0.1:3000/v5/
# Basic Authentication password # Basic Authentication password
export PRO_PASS=somerandomepassword:someotherrandompassword:aThirdPassword export PRO_PASS=somerandomepassword:someotherrandompassword:aThirdPassword
@@ -65,6 +65,11 @@ export LOG_MAX_SIZE=1m
#5d means store no more than 5 days #5d means store no more than 5 days
export LOG_MAX_FILES=5d export LOG_MAX_FILES=5d
# (Optional) bcash full node
export BCASH_SERVER=http://localhost:3002/ export BCASH_SERVER=http://localhost:3002/
# psf-slp-indexer
#export SLP_INDEXER_API=https://psf-slp-indexer.fullstack.cash/
export SLP_INDEXER_API=http://172.17.0.1:5010/
npm start npm start