简体   繁体   English

在没有 Root 权限的服务器上部署 Laravel 项目

[英]Deploy Laravel Project on a Server without Root Permissions

I am in a situation that I have built a Laravel Project on my Local Machine, but on the Production Server where I want to Deploy it I do not have Root Permissions thus I cannot install Composer... Is it still possible to Deploy Laravel Project?我的情况是我在本地机器上构建了一个 Laravel 项目,但是在我想要部署它的生产服务器上我没有 Root 权限,因此我无法安装 Composer ...是否仍然可以部署 Laravel 项目?

Thank you.谢谢你。

It would depend on how/what you mean by deploy.这将取决于部署的方式/含义。 If you don't have composer on the production server, you just have to make sure the vendor directory is uploaded to the production server.如果您在生产服务器上没有作曲家,您只需确保将供应商目录上传到生产服务器。

Not sure what restrictions you have, but have you thought about installing composer locally under your account on the server?不确定您有什么限制,但是您是否考虑过在服务器上的帐户下本地安装 composer?

see https://getcomposer.org/doc/00-intro.md#locallyhttps://getcomposer.org/doc/00-intro.md#locally

是的,可以在不访问任何终端或 root 访问权限的情况下部署 laravel,您只需要在部署到该主机之前编译应用程序所需的所有内容,当我懒惰访问我的 SSH 时,我每次都对我的 node_modules 执行此操作,我编译所有内容然后我的本地机器将其上传到生产服务器。

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

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