Giter Club home page Giter Club logo

cobol-worker's Introduction

cobol-worker

Play

The possible picks are rock, scissors and paper.

curl -d "pick=rock" https://cobol.demos.cloudflare.com | jq .

Deploy

Make sure to change the wrangler.toml with your zone's information.

npm run deploy

cobol-worker's People

Contributors

frankr85 avatar xtuc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cobol-worker's Issues

Problems running `npm run deploy`

I just wanted to try out the example and publish this repository to my worker.
However, running npm run deploy as explained here gives me this error:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/usr/local/Cellar/node/12.11.1/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'deploy'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ]
5 info lifecycle @1.0.0~predeploy: @1.0.0
6 verbose lifecycle @1.0.0~predeploy: unsafe-perm in lifecycle true
7 verbose lifecycle @1.0.0~predeploy: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/frank/Repositories/cloudflare/cobol-worker/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
8 verbose lifecycle @1.0.0~predeploy: CWD: /Users/frank/Repositories/cloudflare/cobol-worker
9 silly lifecycle @1.0.0~predeploy: Args: [ '-c', 'bash build.sh' ]
10 silly lifecycle @1.0.0~predeploy: Returned: code: 1  signal: null
11 info lifecycle @1.0.0~predeploy: Failed to exec predeploy script
12 verbose stack Error: @1.0.0 predeploy: `bash build.sh`
12 verbose stack Exit status 1
12 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack     at EventEmitter.emit (events.js:210:5)
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack     at ChildProcess.emit (events.js:210:5)
12 verbose stack     at maybeClose (internal/child_process.js:1021:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
13 verbose pkgid @1.0.0
14 verbose cwd /Users/frank/Repositories/cloudflare/cobol-worker
15 verbose Darwin 19.3.0
16 verbose argv "/usr/local/Cellar/node/12.11.1/bin/node" "/usr/local/bin/npm" "run" "deploy"
17 verbose node v12.11.1
18 verbose npm  v6.11.3
19 error code ELIFECYCLE
20 error errno 1
21 error @1.0.0 predeploy: `bash build.sh`
21 error Exit status 1
22 error Failed at the @1.0.0 predeploy script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
23 verbose exit [ 1, true ]

Any ideas what I am doing wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.