How can I run redwoodjs on premise? There are ways to deploy in the cloud but I would like to test it internally before deploying it. I did a yarn rw build and added the folder web/dist to nginx. The home-page is fine, but when I try to get the list of units I get two errors.
Error: "Network error: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
Error: "Minified React error #152; visit https://reactjs.org/docs/error-decoder.html?invariant=152&args[]=c for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
nginx.conf on macos:
location / {
root /Users/claus/devel/redwoodjs/utstyr/web/dist;
index index.html index.htm;
}
Ah, yes, that setting is coming from redwood.toml. The apiProxyPath is effectively what the API endpoint will be in production. So likely you’ll need to update that for running production environment locally.