Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

[GM-835] Update documentation for environment variables #878

Merged
merged 5 commits into from
May 14, 2020

Conversation

zionts
Copy link
Contributor

@zionts zionts commented May 14, 2020

Since the release of Apollo Server 2.13.0, the APOLLO_KEY and APOLLO_GRAPH_VARIANT environment variables are preferred to their ENGINE_API_KEY and ENGINE_SCHEMA_TAG predecessors. This updates the documentation for these, noting the former names for older versions of Apollo Server.

@zionts zionts force-pushed the adam/20/5/docs-update-for-env-vars branch from 1aefbd1 to 76c6a79 Compare May 14, 2020 08:18
@zionts zionts changed the title Update documentation for environment variables [GM-835] Update documentation for environment variables May 14, 2020
}
};
```
Our key is now stored under the environment variable `APOLLO_KEY`.

### Check and publish with the Apollo CLI

It's time to publish our schema to Graph Manager! First, start your server in one terminal window by running `npm start`. In another terminal window, run:
Copy link
Contributor

@StephenBarlow StephenBarlow May 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"In another terminal window, run the following command, substituting the name of your graph where indicated:"


### Check and publish with the Apollo CLI

It's time to publish our schema to Graph Manager! First, start your server in one terminal window by running `npm start`. In another terminal window, run:

```bash
npx apollo service:push --endpoint=http://localhost:4000
npx apollo service:push --endpoint=http://localhost:4000 --graph=my-graph
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change "my-graph" to "name-of-graph"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants