Hello, thank you for your article. I was stuck all day long and it helped me. However, there are few things I would like to add, if I may, to complete the information :
You don't need Node on your remote server, you just need it when you build the React App (npm run build your-app)
You can run npm on your local computer (you must have Node to compile) and just send the "build" folder to your server
FTP is a way to upload, but you can also use SSH with the scp command
can you explain more about "You don't need Node on your remote server"?
can i build an app with mySql + node + react - run build, and deploy the app on c-panel, or the c-panel deploy only react apps with static data, not apps that use database?
and i`m not talking about a vps hosting, but a regular shared hosting.
What he answered and you had asked are not the same.
He just pointed out that in a React App, we need to compile the files using node to generate build files inorder to work in production.
Generally in VPS or private cloud the build process is took place in server where we explicitly have node installed. He intends to tell that you can build your React App in your local machine and just copy the build files to the production.
Hope I cleared your first doubt.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello, thank you for your article. I was stuck all day long and it helped me. However, there are few things I would like to add, if I may, to complete the information :
For the rest, everything is exact. Thanks again !
can you explain more about "You don't need Node on your remote server"?
can i build an app with mySql + node + react - run build, and deploy the app on c-panel, or the c-panel deploy only react apps with static data, not apps that use database?
and i`m not talking about a vps hosting, but a regular shared hosting.
What he answered and you had asked are not the same.
He just pointed out that in a React App, we need to compile the files using node to generate build files inorder to work in production.
Generally in VPS or private cloud the build process is took place in server where we explicitly have node installed. He intends to tell that you can build your React App in your local machine and just copy the build files to the production.
Hope I cleared your first doubt.