DEV Community

Discussion on: Deploy / Host your React App with cPanel in Under 5 Minutes

Collapse
 
monochromaticmau profile image
monochromaticmau

I don't think your article shows a server.js. I have something like:

-public
 --dist
  ---bundle.js
  ---styles.css
 --index.html
 --images
-server
 --server.js
-src
 --components
 --app.js
-.babelrc
-package.json
-webpack.config.js

I don't think that the Build covers the server.js so where does this live and get activated at? Does anyone know a full instructional on this type of deployment? I opened port 3001 in cPanel, but my requests aren't going through on port 3001.