如何在生产FTP上创建测试环境

发布于 2024-08-30 06:59:21 字数 448 浏览 1 评论 0原文

我目前正在开发 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

耳钉梦 2024-09-06 06:59:21

登台服务器实际上应该与生产服务器完全相同。相同的版本,相同的目录结构等等......克隆。但是,您仍然可以通过将站点安装到子域 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文