mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Merge pull request #172 from Permissionless-Software-Foundation/ct-unstable
Updating production script
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Remove all untagged docker images.
|
||||||
|
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user