I'm not pro of using Git from local to server deployment. But, what I did was manually uploading files using FTP. I followed the YouTube videos "How to deploy Laravel to shared hosting". It worked for me very well. I followed those tutorials as there was no access to ssh/terminal of online server.
Deployment to Production Questions
I'm currently figuring out the right way to deploy the Laravel app on production server. I'm using GIT, while keeping the actual repo and Work Tree different; it works very well. I've referred to the documentation but I feel it's not complete - https://laravel.com/docs/5.6/deployment
Would really appreciate if someone could help me understand the following -
-
Documentation says you need to run
composer install --optimize-autoloader. But it does not talk about runningcomposer install --no-dev. Is the second command required? -
Do we need to install
node.jsandnpmon the server and runnpm run prod? My best guess is that I should run these commands on my local dev machine and simply upload stuff to live server.
Thank you for your time and I look forward to having your responses.
Please or to participate in this conversation.