简体   繁体   English

部署php应用程序

[英]Deploy a php application

Is there a method to deploy a PHP/Symfony2 project without having to give customer the source code to? 是否有一种无需向客户提供源代码即可部署PHP / Symfony2项目的方法?

I don't know if it's like JEE project but all my research I found that the only way to deploy a symfony application is by changing dev into prod. 我不知道这是否像JEE项目,但是我的所有研究都发现,部署symfony应用程序的唯一方法是将dev更改为prod。

Can someone help me please ? 有人能帮助我吗 ?

Here you have the same question, not about symfony per se but about PHP. 在这里,您有同样的问题,不是关于symfony本身,而是关于PHP。 Some of the recommendations there: 那里的一些建议:

  • Make a virtual machine appliance (restricts access to code, makes sure that the deployment environment is stable and controlled, and sandboxes the install) 制作虚拟机设备(限制对代码的访问,确保部署环境稳定且受控,并沙盒安装)
  • If you're afraid they will steal and resell your code, change you and do the support with another person, etc., you could add clauses to the contract forbidding that 如果您担心他们会窃取并转售您的代码,更改您的身份并与他人合作,等等,则可以在合同中添加条款,禁止

Edit: you also have Zend Guard (found it in this other answer ), but there usually exists a way to decode the obfuscated PHP code. 编辑:您也有Zend Guard (在另一个答案中找到了它),但是通常存在一种解码混淆的PHP代码的方法。

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

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