Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 954 Bytes

working-with-webtasks.md

File metadata and controls

24 lines (15 loc) · 954 Bytes

Working with webtasks

Building a webstask script containing your api in a single bundle

  • gulp buildWebtask

Bundle script file with the api ready to deploy to webtask.io will be generated at ./build/webtask.js. Bundle configuration file will be generated at ./build/webtask.config.js.

Deploying your webtask

Make sure you have wt-cli installed and that your webtask token is already configured in ./config/webtask.config.js.

  • npm install -g wt-cli
  • wt init => then follow instructions
  • wt profile get default => copy the token

default profile

  • open ./config/webtask.config.js and configure the webtaskToken property with your token

Then run:

  • gulp deployWebtask

deploy