Issue
Please anybody with the experience of deploying a MERN stack APP to cpanel on a VPS server? Kindly share! Thanks!!
Solution
You can upload an app to cpanel, that is developed using node,express and react (and in this case, you must ensure first that the cpanel supports nodejs apps, not all of them do so). But, mongoDB simply is not supported by CPanel. You can upload MERN stack app, but, the db won't be connected.
- Once you have the cpanel access, create a folder to the directory, upload your project (make sure you take the integrated approach to deploy your mern app).
- Go to the UI, create an app and address the folder to the app. Start the app. And your website is ready to use.
Answered By - Tina Answer Checked By - Cary Denson (PHPFixing Admin)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.