从开发迁移到实时服务器时出现问题

发布于 2024-08-29 09:59:03 字数 287 浏览 3 评论 0原文

将我的网络应用程序项目从开发服务器迁移到实时服务器时,我遇到了问题。原因是因为我刚刚意识到实时服务器的 PHP 版本不同,可用内存低于我的。

在客户向我提供他们的服务器(共享主机)的 ftp 和 cpanel 访问权限后,我发现了这一点。

那么,

  1. 我们该如何处理这种情况呢?并避免将来出现类似问题?
  2. 开发服务器最合适的配置是什么?

顺便说一句,我在 Windows 中使用 xampp。它有apache和mysql。

I'm facing problem when migrate my web app project from development server to live server. the reason is because i just realize that the live server has different PHP version and available memory lower then mine.

i found this after client give me their ftp and cpanel access of their server, which is a shared host.

so,

  1. how do we handle this situation ? and avoid similar problem in the future ?
  2. What is the most suitable configuration of a development server ?

btw, i use xampp in windows. it's has apache and mysql.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

自我难过 2024-09-05 09:59:03

将来您应该就生产服务器的最低规格达成一致,并适当地调整您的开发服务器(如有必要)。它还将有助于尽快访问生产系统(或有关信息),以便您可以及早进行任何必要的更正。

In the future you should agree upon minimum specs for the production server, and tune your development server appropriately (if necessary). It would also help to get access (or information about) the production system as soon as possible, so you can make any necessary corrections early on.

孤单情人 2024-09-05 09:59:03

我不得不面对完全相同的问题(作为客户端......)尽管我坚持网络机构必须在我们的托管服务器上进行测试,但他们没有。当他们交付时,几乎所有东西都坏了,因为版本和设置非常不同。

如果网站要托管在共享托管服务器上,通常只需花费几美元即可获得自己的空间。如果您不想复制完全相同的版本/设置环境,这是测试您的工作的一种廉价方法

I had to face the exact same problem (being the client ...) although I insisted that the web agency had to test on our hosting servers, they did not. When they delivered, pretty much everything broke because the versions and settings very different.

If the website is to be hosted on a shared hosting server, quite often it's possible to get your own space for a few bucks. If you don't want to bother replicating the exact same versions/setting environement, it's a cheap way to test your work

相权↑美人 2024-09-05 09:59:03

我有一辆旧奔腾||我的开发环境大约有 256Mb 的 RAM,对于 PHP 工作,我通常会进一步将内存使用量限制在较低的水平。然后,在我编写一行代码之前,我要求我的客户从他们希望我部署的环境中向我提供 phpinfo 输出的保存副本。最后一点,我将重新配置我的迷你盒以使其运行完全相同。

多年来,这对我来说效果很好,因为我几乎总能保证部署时的性能提升(客户端喜欢),而且我不必担心环境冲突。

I have an old Pentium || with about 256Mb of ram that is my development environment, for PHP work I usually further restrict memory usage to something moderately low. Then before I write one line of code, I demand that my clients give me a saved copy of the output of phpinfo from the environment they wish me to deploy too. With that last bit, I'll reconfigure my mini-box to run exactly the same.

That's worked well for me for several years because I am almost always guaranteed a performance boost on deployment ( which client's like ) and I don't have to worry about environment conflicts.

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