Andrew Schreiber
10/25/2017, 2:19 AMAndrew Schreiber
10/25/2017, 2:19 AMAndrew Schreiber
10/25/2017, 2:22 AMnilan
10/25/2017, 2:27 AMKat
10/25/2017, 2:44 AMjac
10/25/2017, 3:46 AMnpm install -g graphcool@next
but the howtographql uses npm install -g graph cool
. My first question is, which one is out of date? Or should they both be correct for their respective tutorial? I suspect a problem because graphcool@next (graphcool/0.8.1) returns Unknown flag --schema
when I run, for example graphcool init --schema <https://graphqlbin.com/hn-starter.graphql> --name Hackernews
. But I think theres a bug with graphcool@1.3.7 because when I try graphcool --version
or anything else I get ✖ Error: Unexpected token c in JSON at position 0
graphcool SyntaxError: Unexpected token c in JSON at position 0
graphcool at JSON.parse (<anonymous>)
graphcool at Config.load (/Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/utils/config.js:23:29)
graphcool at defaultEnvironment (/Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/index.js:141:12)
graphcool at /Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/index.js:40:21
graphcool at Generator.next (<anonymous>)
graphcool at /Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/index.js:8:71
graphcool at new Promise (<anonymous>)
graphcool at __awaiter (/Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/index.js:4:12)
graphcool at main (/Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/index.js:37:12)
graphcool at Object.<anonymous> (/Users/jac/.nvm/versions/node/v8.7.0/lib/node_modules/graphcool/dist/src/index.js:149:1)
graphcool at Module._compile (module.js:624:30)
graphcool at Object.Module._extensions..js (module.js:635:10)
graphcool at Module.load (module.js:545:32)
graphcool at tryModuleLoad (module.js:508:12)
graphcool at Function.Module._load (module.js:500:3)
graphcool at Function.Module.runMain (module.js:665:10)
graphcool at startup (bootstrap_node.js:187:16)
graphcool at bootstrap_node.js:608:3 +0ms
jac
10/25/2017, 3:53 AMamann
10/25/2017, 4:11 AMsid.gupta
10/25/2017, 4:40 AMsid.gupta
10/25/2017, 4:40 AMjoslarson
10/25/2017, 5:09 AMnilan
10/25/2017, 5:41 AMbergie
10/25/2017, 5:43 AMgraphcool init server
per the tutorial but it only seems to have created project.graphcool
, not the server
directory ... am i missing something obvious?Jamsheer T
10/25/2017, 6:17 AMJamsheer T
10/25/2017, 6:17 AMJamsheer T
10/25/2017, 6:18 AMJamsheer T
10/25/2017, 6:18 AMKat
10/25/2017, 6:18 AMJamsheer T
10/25/2017, 6:19 AMJamsheer T
10/25/2017, 6:20 AMDiscere
10/25/2017, 7:07 AMpanzupa
10/25/2017, 9:05 AMpanzupa
10/25/2017, 9:05 AMpanzupa
10/25/2017, 9:05 AMpanzupa
10/25/2017, 9:07 AMmarcusstenbeck
10/25/2017, 9:30 AMantho1404
10/25/2017, 11:12 AM--target
option
I’m using Gitlab and .gitlab-ci.yml
with the following config
deploy_graphcool:
stage: deploy
script:
- 'printf "platformToken: >-\n $GC_AUTH_TOKEN" > $CI_PROJECT_DIR/.graphcoolrc'
- npm run gc -- deploy --target prod
And my log from the CI ask me to choose
> gc "deploy" "--target" "prod"
? Please choose the cluster you want to deploy to (Use arrow keys)
Shared Clusters:
❯ shared-eu-west-1
shared-ap-northeast-1
shared-us-west-2
Local (docker):
local
Kat
10/25/2017, 11:13 AMwebcreation-bzh
10/25/2017, 12:28 PMDaniel K.
10/25/2017, 12:33 PM