Php site deployment?

new to PHP depolyment. Have solid experience in .NET so deployment is as easy as right click & publish in Visual Studio. Currently, deployment in PHP means connecting to EC2 instance through Filezilla, dragging local folders into Filezilla and wait like forever for it to finish. Is this the standard way to deploy PHP sites or am I missing something here? What if I want to update my website content? Repeat this again? Or upload the modified files? But what if I lose track on what files I have been modified? Git?


This is my prefered workflow

  • Startup local development server (using XAMPP)
  • Make changes
  • Commit to git
  • Push to git
  • (live server pulls from git)
  • The main benefits of this workflow are:

  • You can see your changes instantly
  • If you break something it will only break locally, if you happend to have pushed the bug to github you can simply revert
  • You don't have to wait for FTP, as git will do the work for you
  • If you are working in a team, you will never overwrite each other's changes over FTP
  • 链接地址: http://www.djcxy.com/p/81662.html

    上一篇: Visual Studio FTP发布不关闭连接?

    下一篇: Php站点部署?