WIP
- Create new WebTask
First create a new file.env.auth0with all secrets (Check thewebtask/github).
Create a profile
wt init -p "newrelease"
Create/update proxy to Github
wt create dist/github.js -p "newrelease" --secrets-file .env.auth0 --name github -d es6-promise -d express-boom -d auth0 -d memory-cache -d web-push -d babel-runtime -d babel-core
wt update github webtasks/github.js -p newrelease -d express-boom -d auth0 -d memory-cache
Run locally
wt serve webtasks/github.js --secrets-file .env.auth0 --storage-file ./storage.json --hostname localhost --port 3001
Publishing
now --dotenv --public --docker
now alias xpvB6GZWMR6Q9Oxe3c64Htgq newrelease
npm run build
docker build -t registry.heroku.com/${YOUR_APP_NAME}/web .
docker push registry.heroku.com/${YOUR_APP_NAME}/web
heroku container:push web --app