简体   繁体   English

如何在 ubuntu 服务器上部署 laravel 应用程序? (ssh)

[英]How do i deploy a laravel app on ubuntu server? (ssh)

So i searched the first 2 pages of google for it but i cant seem to get it straight so, the problem is that i have the ip adress and the username and the password for the server and i can connect to it over cmd with ssh username@ipadress but i cant upload my laravel app there.所以我搜索了谷歌的前两页,但我似乎无法弄清楚,问题是我有 ip 地址以及服务器的用户名和密码,我可以通过 cmd 和 Z178DC7D76464A3047C 连接到它@ipadress 但我不能在那里上传我的 laravel 应用程序。 I installed apache2, nginx, and a lot of other packages for php and composer, but all the tutorials show me how to create a new laravel app there, which is not what i need because i developed the project and i just need to put it up there on the server i will let here a photo of the cmd right after i installed the composer and laravel on it I installed apache2, nginx, and a lot of other packages for php and composer, but all the tutorials show me how to create a new laravel app there, which is not what i need because i developed the project and i just need to put it在服务器上,我将在我安装作曲家和 laravel 之后立即在此处放一张 cmd 的照片

the cmd ss cmd ss

what should i do next?接下来我该怎么做? or how should i upload it...或者我应该如何上传它...

are you using git?您在使用 git 吗? if not first setup git and upload your project to git then in git you have option deploy project in that option generate deployment key and use that to clone/deploy your project into the server.如果不是首先设置 git 并将您的项目上传到 git 然后在 git 您有选项 deploy project 在该选项中生成部署密钥并使用它将您的项目克隆/部署到服务器。

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

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