yarn dev:mac_oswill serve badge renders tohttp://localhost:3000/:campaign_id/:user_id.pngusing the default Chrome path on MacOS. For other paths runenv CHROME_PATH=<path_to_chrome> nodemon local.jsyarn formatwith prettify the source files
We deploy to a lambda of architecture amd64
SSH into EC2 instance of architecture amd64 and do:
- Clone and
cdinto this repository rm -rf node_modulesnpm install --only=prodzip -r index index.js render.js node_modules(make sure there isn't any extra stuff in node_modules
Now back on your local machine:
scpthe.zipthat was just created locally- Upload the
.zipto the Lambda web interface - (optional) extract the
.ziplocally so you can reusenode_modulesand skip the EC2 step untilpackage.jsonchanges