mirror of
https://github.com/FranP-code/countries.git
synced 2025-10-13 00:02:15 +00:00
Try specifying apollo endpoint in a config file
This commit is contained in:
@@ -4,9 +4,9 @@ cache:
|
|||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
before_script: node -r esm index.js &
|
before_script: node -r esm index.js &
|
||||||
after_success: npx apollo schema:check --endpoint=http://localhost:$PORT
|
after_success: npx apollo schema:check
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script: npx apollo schema:publish --endpoint=http://localhost:$PORT
|
script: npx apollo schema:publish
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
|
|||||||
3
apollo.config.js
Normal file
3
apollo.config.js
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
endpoint: `http://localhost:${process.env.PORT}`
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user