如何在生产FTP上创建测试环境
我目前正在开发 symfony Web 应用程序,该应用程序已经投入生产。为了开发和添加/删除/修改模型的功能,我在笔记本电脑上使用 symfony 'dev' 环境进行工作。
我测试一切是否正常,然后我祈祷一点并将其部署在产品服务器上(存在数据错误的所有风险,例如当我在模型上添加新的非空属性、产品服务器配置特殊内容、版本php/apache 等。)。
问题是我想设置一个“临时”服务器,它将是生产服务器的副本(相同的数据库,相同的配置 apache/php),这样,如果部署出错,生产用户保持不变,并且工作正常,只有临时服务器已关闭。但我的客户只有1 个可用的 FTP。
所以,问题是:我可以在同一个 FTP 上运行 2 个具有不同模型的 symfony 项目吗?
或者还有其他方法来做我想做的事情吗?
谢谢 !
I'm currently working on a symfony webapp, which is already on production. To develop and add/delete/modify functionnality of the model, I work on my laptop, using symfony 'dev' environnemment.
I test if everything work fine, then I pray a little and deploy it on the prod server (with all the risk of data error, like when I add new not null attributes on the model, prod server configuration special stuff, version of php/apache etc.).
The problem is that I would like to setup a "staging" server, which would be a copy of the production server (same database, same configuration apache/php), so that, if the deployment goes bad, the production user stay untouched and working, only the staging server is down. But my client has only 1 FTP available.
So, the question is : can I run 2 symfony project, with different models, on the same FTP ?
Or is there another way to do what I want to do ?
Thank you !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
登台服务器实际上应该与生产服务器完全相同。相同的版本,相同的目录结构等等......克隆。但是,您仍然可以通过将站点安装到子域 (staging.domain.com) 中来获得大部分好处。检查他们的主机是否允许子域(其中 99.999% 允许)并在那里安装您的应用程序。
A staging server should really be exactly the same as production. Same versions, same directory structure, etc... a clone. However, you can still get most of the benefits by installing the site into a subdomain (staging.domain.com). Check to see if their host allows subdomains (%99.999 of them do) and install your application there.