I am very new to deployment. I have been a learning developer for the last 3 months and I am ready to deploy my first project.
It is a simple web app which uses node.js and php. However I am not sure how I should set it app up. I have a few concerns:
Which Linux distro should I use - for now I am going for Ubuntu since it seems the most popular ?
When I get a droplet in Digital Ocean should it be partitioned somehow or should I install node.js with pm2 and apache all on the same machine ?
When sending the files to the served should the PHP part be kept separate from the JS part of the application ? Or should I deploy the whole project in one directory ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.