Try specifying apollo endpoint in a config file

This commit is contained in:
Trevor Blades
2018-11-05 12:49:49 -08:00
parent 82c21fa4a6
commit b327ab415e
2 changed files with 5 additions and 2 deletions

View File

@@ -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

3
apollo.config.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
endpoint: `http://localhost:${process.env.PORT}`
};