Home > Blockchain >  Laravel project size is too large. How to deploy?
Laravel project size is too large. How to deploy?

Time:07-22

I was made easy blog on Laravel Framework and now it is finished. But I am new guy in this. So the question how to deploy my project? The Vendor and ClockWork folders has thousands of files. I think that it should not to upload to the server. Am I wrong?

CodePudding user response:

The project will not work without vendor dependencies, but true - sending it all over SSH is quite long and archive will be huge - uploading them every time by yourself will be annoying. Usually, you do not upload vendor and node_modules folders to the server, but run:

composer install --optimize-autoloader --no-dev

npm install && npm run build && rm -R node_modules

Read more details in Laravel's deployment section

CodePudding user response:

maybe try to compress the project to a zip file

  • Related