From b327ab415e1f44365a485adefb7e2186692dd3ec Mon Sep 17 00:00:00 2001 From: Trevor Blades Date: Mon, 5 Nov 2018 12:49:49 -0800 Subject: [PATCH] Try specifying apollo endpoint in a config file --- .travis.yml | 4 ++-- apollo.config.js | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 apollo.config.js diff --git a/.travis.yml b/.travis.yml index 510297c..b38b5ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,9 @@ cache: directories: - node_modules before_script: node -r esm index.js & -after_success: npx apollo schema:check --endpoint=http://localhost:$PORT +after_success: npx apollo schema:check deploy: provider: script - script: npx apollo schema:publish --endpoint=http://localhost:$PORT + script: npx apollo schema:publish on: branch: master diff --git a/apollo.config.js b/apollo.config.js new file mode 100644 index 0000000..d14a532 --- /dev/null +++ b/apollo.config.js @@ -0,0 +1,3 @@ +module.exports = { + endpoint: `http://localhost:${process.env.PORT}` +};