create a namespace in Heroku
heroku create «app name»
deploy to Heroku
» setup env variables in heroku » setup port variable in code: process.env.PORT » setup npm run start script »» heroku create «app name» »» git push heroku master
set environment variable in Heroku
heroku config:set «key»=«value»
delete environment variable in Heroku
heroku config:unset «key»
view environment variables in Heroku
heroku config
setup babel for N app in Heroku
// import polyfills and runtime globally » index.js: import "core-js/stable" import "regenerator-runtime/runtime"
// setup postbuild script for Heroku » package.json > scripts: "heroku-postbuild": "babel «src dir» --out-dir «dest dir» --copy-files"
setup manifest.json for arangodb foxx service in aran
» manifest.json: {
"engines": {
"arangodb": "^«version»"
},
"main": "«entry point»"
}what are the caveats of arangodb foxx services?
» no async, await, and promises
» no import statement