Skip to content

Commit

Permalink
chore(devEnv) move health check configuration to dev to prod (#37)
Browse files Browse the repository at this point in the history
* When we work on local (without health check) we don't want kill our process
* Adding data in Readme
  • Loading branch information
benjaminParisel authored Oct 9, 2020
1 parent 1bd0f3b commit 5c7cf13
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Start the server with a BDM:
```
$ node target/src/server/starter.js bdmFile=YOUR_PATH/bdm_simple.xml
or
$ npm run start bdmFile=YOUR_PATH/bdm_simple.xml
$ npm run start
```

### Options
Expand All @@ -37,7 +37,7 @@ $ npm run start bdmFile=YOUR_PATH/bdm_simple.xml

Each option can be given on server start command. Config parameter will be always override file configuration.

Example of config file:
Example of dev config file:

```
{
Expand All @@ -48,6 +48,8 @@ Example of config file:
}
```

To simulate 'production' environment, don't forget to add healthCheck information. You can see an example in config/production.json file.

## Connect to GraphiQL

```
Expand Down
7 changes: 2 additions & 5 deletions config/development.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"port": "4000",
"bdmFile": "resources/bomBBVA.xml",
"bdmFile": "resources/bdm_simple.xml",
"logLevel": "debug",
"logfile": "./logs",
"healthCheckPort": 54896,
"healthCheckUrl": "/api/workspace/status/",
"healthCheckHost": "http://localhost"
"logfile": "./logs"
}
7 changes: 5 additions & 2 deletions config/production.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"port": "4000",
"bdmFile": "resources/bomAG2R.xml",
"bdmFile": "resources/bdm_simple.xml",
"logFile": "target/log/data-repository.log",
"logLevel": "debug"
"logLevel": "debug",
"healthCheckPort": 54896,
"healthCheckUrl": "/api/workspace/status/",
"healthCheckHost": "http://localhost"
}

0 comments on commit 5c7cf13

Please sign in to comment.