Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@ with local Node.js:
npm i

# define environment variables and run
PORT=3000 \
DISPATCHERQUEUE=dispatcher \
RABBITHOST=localhost \
RABBITUSER=rabbit \
RABBITPASS=rabbit \
USE_RABBIT_MQ=1 \
CONFIG_DIR=src/config \
PARTNER_URL_START=http://www.example.com \
PARTNER_API_USERNAME=myusername \
PARTNER_API_PASSWORD=randompassword \
npm run watch

# create a local build
Expand All @@ -40,7 +30,7 @@ docker run \
-p 3000:3000 \
-v $(pwd):/usr/app \
-v $(pwd)/src/config:/klips-conf \
--env-file dev.env \
--env-file docker.env \
klips-api-dev

## build the production image
Expand Down
8 changes: 4 additions & 4 deletions dev.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PORT=3000
DISPATCHERQUEUE=dispatcher
# the IP address of the host system (when running on Linux)
RABBITHOST=172.18.0.1
RABBITHOST=localhost
RABBITUSER=rabbit
RABBITPASS=rabbit
CONFIG_DIR=/klips-conf
USE_RABBIT_MQ=1
USE_RABBIT_MQ=0
CONFIG_DIR=src/config
PARTNER_URL_START=http://www.example.com
PARTNER_API_USERNAME=myusername
PARTNER_API_PASSWORD=randompassword
GEOSERVER_DATA_DIR=/opt/geoserver_data
11 changes: 11 additions & 0 deletions docker.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PORT=3000
DISPATCHERQUEUE=dispatcher
# the IP address of the host system (when running on Linux)
RABBITHOST=172.18.0.1
RABBITUSER=rabbit
RABBITPASS=rabbit
CONFIG_DIR=/klips-conf
USE_RABBIT_MQ=1
PARTNER_URL_START=http://www.example.com
PARTNER_API_USERNAME=myusername
PARTNER_API_PASSWORD=randompassword
Loading