Redwood aims to be a serverless framework. But what if you really want to run it on Heroku?
This guide aims to walk you through each piece required to make it work.
- Add
app.json,Procfile,config/nginx.conf.erb,index.js yarn workspace api add @redwoodjs/api-serveryarn remove -W @redwoodjs/core && yarn add -W @redwoodjs/core pm2- Update your root
package.jsonwith the following scripts:"scripts": { "build": "rw build", "start": "node index.js" },
- Set
apiProxyPathinredwood.tomltoapiProxyPath = "/api"
Note that you will need to manually add the heroku/nginx buildpack manually to your app if you are setting this up on an already created Heroku stack.
That was the name leftover from the project I based this gist on (it was called program-delivery). You can put in anything you like in that field, it doesn't need to match anything else.
What trouble are you having getting it to deploy?