Merge pull request #345 from CosmWasm/simapp-start

Start simapp's in-process API
This commit is contained in:
Will Clark 2020-08-06 10:21:15 +02:00 committed by GitHub
commit bdf0015072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,8 @@ command -v shellcheck > /dev/null && shellcheck "$0"
TENDERMINT_PORT_GUEST="26657"
TENDERMINT_PORT_HOST="26657"
API_PORT_GUEST="1317"
API_PORT_HOST="1318"
SCRIPT_DIR="$(realpath "$(dirname "$0")")"
# shellcheck source=./env
@ -21,6 +23,7 @@ docker volume rm -f simapp_data
docker run --rm \
--name "$CONTAINER_NAME" \
-p "$TENDERMINT_PORT_HOST":"$TENDERMINT_PORT_GUEST" \
-p "$API_PORT_HOST":"$API_PORT_GUEST" \
--mount type=bind,source="$SCRIPT_DIR/template",target=/template \
--mount type=volume,source=simapp_data,target=/root \
"$REPOSITORY:$VERSION" \

View File

@ -78,7 +78,7 @@ global-labels = [
[api]
# Enable defines if the API server should be enabled.
enable = false
enable = true
# Swagger defines if swagger documentation should automatically be registered.
swagger = false
@ -99,4 +99,4 @@ rpc-write-timeout = 0
rpc-max-body-bytes = 1000000
# EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk)
enabled-unsafe-cors = false
enabled-unsafe-cors = true