bahmutov / now-pipeline

Simple CI pipeline with goal to deploy new version at Zeit Now cloud if tests pass
141 stars 8 forks source link

Cannot deploy using API #2

Closed bahmutov closed 8 years ago

bahmutov commented 8 years ago
$ NOW_AUTH=<token> node src/index.js 
deploying files [ '/now-pipeline/test/package.json',
  '/now-pipeline/test/index.js' ]
{ 'index.js': 'const port = process.env.PORT || 6000\nrequire(\'http\').Server((req, res) => {\n  res.setHeader("Content-Type", "text/plain; charset=utf-8");\n  res.end(require("sign-bunny")("Hi there!"));\n}).listen(port);\nconsole.log(\'listening on port\', port)\n',
  package: 
   { name: 'now-pipeline-test',
     dependencies: { 'sign-bunny': '1.0.0' },
     scripts: { start: 'node index.js' } } }
error
{ err: 
   { code: 'internal_server_error',
     url: 'https://zeit.co/errors/internal_server_error',
     message: 'An unexpected error occurred' } }
bahmutov commented 8 years ago

Opened https://github.com/zeit/now-issues/issues/33

bahmutov commented 8 years ago

Try the official Node client https://github.com/zeit/now-client

bahmutov commented 8 years ago

Ok, seems to work via official node api client, closing