安装一个惯性力laravel5项目vpsssh和git - Installling a complated laravel 5 project on vps with ssh and git

- 此内容更新于:2016-02-03
主题:

我做了一个laravel5项目在我的本地主机。我买了一个vps。我想安装laravel5项目vps但我不想使用ftp。因为,我将与我的位桶账户oft-times升级我的项目。否则,我使用我的vps几个网站。因为我不想使用public_html文件夹。我安装了所有的需求。有人能帮助我吗?

原文:

I made one laravel 5 project in my localhost. I bought a vps. I want to install my laravel 5 project to vps but I don't want use ftp.

Because, I will oft-times upgrade my project with my bit-bucket account. Otherwise, I using my vps for a few websites. Because of this I don't want use public_html folder.

I installed all requirements.

Can someone help me?

网友:首先在你的vps安装git和作曲家,然后你可以克隆,更新您的项目使用git在任何文件夹,然后创建一个配置文件来运行这个项目使用域名

(原文:first install git and composer in your vps,then you can clone,update your project using git in any folder and then create a config file for run this project using domain name)

网友:我如何创建一个配置文件吗?你能展示一个例子我吗?

(原文:how i create a config file for this? Can you show a example me?)

网友:为创建遵循这个kingpabel.com/nginx-virtual-hostnginx配置文件

(原文:for create nginx configuration file follow this kingpabel.com/nginx-virtual-host)

解决方案:
尝试Capistrano。这是一个ruby库,用于将代码部署到服务器,并很好地配置。这是用Ruby编写的,但可以部署在任何语言编写的代码。您可以扩展它在很多方面如果必要的。默认情况下它通过git部署(实际上生成一个释放.tar。广州和解开它的端点)。在SSH连接。它处理版本和回滚。IMHO相当好。也有一个插件Laravel项目:https://github.com/capistrano/laravel/
原文:

Try out Capistrano. It's a ruby library that's meant for deploying code to servers, and is nicely configurable. It's written in Ruby, but can deploy code written in any language. You can extend it in a number of ways if necessary. By default it deploys via git (actually generates a release .tar.gz and unzips it in the endpoint). It connects over SSH. It handles releases and rollbacks as well. Pretty nice IMHO.

There's a plugin for Laravel projects also: https://github.com/capistrano/laravel/