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}` +};