简体   繁体   English

如何在 cPanel/共享主机上部署 Laravel 项目,省略“node_modules”文件夹

[英]How to deploy a Laravel project on cPanel/ Shared hosting leaving out “node_modules” folder

Is there a "BETTER" way of deploying a Laravel project in cPanel without coping the "node_modules" folder, cause its really big and I assume there should be a way to leave out that folder.是否有一种“更好”的方式在 cPanel 中部署 Laravel 项目而不处理“node_modules”文件夹,因为它真的很大,我认为应该有一种方法可以省略该文件夹。 Im asking cause I have seen a lot of tutorials that include "node_modules" folder.我问是因为我看过很多包含“node_modules”文件夹的教程。

You can try first on local server without node_modules your application working fine or not then you can deploy without node_module您可以先在没有 node_modules 的本地服务器上尝试您的应用程序是否正常工作,然后您可以在没有 node_module 的情况下进行部署

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM