[英]What is the best way to store Symfony project on github?
I've created a Symfony project and pushed it to the github. 我创建了一个Symfony项目并将其推送到github。 Now I want to get it from github on another machine.
现在我想从另一台机器上的github上获取它。
The problem is that there are a lot of files/folders in Symfony's .gitignore file by default, so my application is broken after 'git clone' command. 问题是默认情况下Symfony的.gitignore文件中有很多文件/文件夹,所以我的应用程序在'git clone'命令后被破坏了。
I would like to know, what is the best way/practice to store and retrieve Symfony application on/from github. 我想知道,在github上存储和检索Symfony应用程序的最佳方法/实践是什么。 What are the common steps to do it?
这样做的常见步骤是什么?
You have to download and install Composer on your server. 您必须在服务器上下载并安装Composer 。 Keep your .gitignore as default and install your vendors on each cloning.
将.gitignore保留为默认值,并在每次克隆时安装供应商。
If your deployment isn't recurrent, you can do it manually by use : 如果您的部署不是经常性的,您可以通过以下方式手动执行:
composer install
after each cloning . 每次克隆后。
If you deploy recurrently or just if you want, you can automate your deployment using Capistrano tasks for Symfony2 如果您经常进行部署或只是根据需要进行部署,则可以使用Symfony2的Capistrano任务自动部署
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.