简体   繁体   English

在github上存储Symfony项目的最佳方法是什么?

[英]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.

相关问题 使用composer和assets为symfony项目包含jQuery的最佳方法是什么 - What is the best way to include jQuery for symfony project using composer and assets Symfony2 datetime存储时间戳的最佳方法是什么? - Symfony2 datetime best way to store timestamps? 在svn中存储symfony配置参数的最佳方法? - best way to store symfony configuration params in svn? Symfony / PHP - 存储单一价值的最佳方式 - Symfony / PHP - Best way to store single value Symfony2存储用户数据的最佳方法? - Symfony2 best way to store user data? 在Symfony2中处理类似CMS的项目的路由的最佳方法是什么 - What is the best way to handle routing for CMS-like project in Symfony2 将symfony项目部署到自动缩放应用程序时,清除apc_cache的最佳方法是什么? - What is the best way to clear apc_cache when deploying a symfony project to an autoscaling application? 用Symfony创建电子商务应用程序的最佳方法是什么? - What will be the best way to create a ecommerce app with Symfony? 将配置存储在php composer项目中的最佳方法? - Best way to store configs in a php composer project? 在PHP中存储配置变量的最佳方法是什么? - What is the best way to store configuration variables in PHP?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM