Skip to content

Commit

Permalink
Fix dotenv usage (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: Di Wang <[email protected]>
  • Loading branch information
hemslo authored Jul 7, 2023
1 parent 3aaf0ab commit 7b24629
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,23 @@ make bundle APP_INTERFACE_PATH=/home/myuser/app-interface/

### Running the Qontract GraphQL server

Create `.env` file from example:

```shell
cp .env.example .env
```

Customize the `.env` file as needed, for example:

```
LOAD_METHOD=fs
DATAFILES_FILE=./bundle/bundle.json
```

To run an instance of the qontract GraphQL console:

```sh
LOAD_METHOD=fs DATAFILES_FILE=your_test_datafile yarn run server
yarn run server
```

Specific instructions for CentOS 7:
Expand Down
1 change: 1 addition & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'dotenv/config';
import { ApolloServer } from 'apollo-server-express';
import * as express from 'express';

Expand Down

0 comments on commit 7b24629

Please sign in to comment.