aradzie/keybr.com

After deployment on the server, an access error is reported

Closed this issue · 2 comments

image
image
Go through the tutorial until the end npm start and then directly report an error of 500 when accessing

The manifest.json file is produced by the npm build command. Let me check if I mentioned this in the docs.

Looking at your screenshot, it tries to load the manifest file from /root/keybr.com/root/.... Is this intentional, are you the root user in your system? Or is this a configuration error in the .env file?

Anyway, check the value of env variable PUBLIC_DIR. Mine is PUBLIC_DIR=~/Projects/keybr.com/root/public. Make sure that the ${PUBLIC_DIR}/assets/manifest.json file exists. You may want to run npm run build-dev or npm run watch to build one.