且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

与Magento合作时,有什么好的方法来开发环境?

更新时间:2023-12-04 08:10:52

您没有指定虚拟盒子是远程的,但是我将在这里进行假设(因为本地主机上的虚拟盒子会定义要比托管它的计算机慢).

You don't specify that the virtual box is remote, but I'm going to make that assumption here (since a virtual box on your local host would by definition be slower than the machine it is hosted on).

我建议远程连接到规格较高的计算机,以处理文件并在该环境中进行测试.基本上,将其用作开发实例并进行远程更改.然后,根据需要检查这些更改.

I would suggest connecting to your higher-spec machine remotely to work with the files and testing on that environment. Basically, use it as a development instance and make changes remotely. Then, check in those changes as necessary.

我非常是一名Linux开发人员,因此您的工具链有点超出我的专业知识,但是您应该能够将远程驱动器安装为本地网络驱动器,否则您的IDE甚至可以支持通过SSH进行安装(可能会快一点.

I am very much a Linux developer so your toolchain is a bit outside of my expertise, but you should be able to mount the remote drive as a local network drive, or your IDE may even support mounting it over SSH (which would probably be a bit faster).

希望有帮助!

谢谢, 乔

我要说的是,如果您的虚拟实例不是不是远程的,那将稍微改变我的答案.租用具有一些合理统计数据的虚拟专用计算机,为Magento进行设置,然后执行以上操作.与您可能购买的任何硬件技术升级相比,虚拟专用机的每月成本都非常低,它为您提供了安全的解决方案.此工作流程的缺点是您必须在线才能完成任何事情.

I should say that, if your virtual instance is not remote, that changes my answer a little bit. Go rent a virtual dedicated machine with some reasonable stats, set it up for Magento, and then do go the above. The monthly cost of a virtual dedicated machine is quite low compared to any hardware technology upgrades you might buy, and it gives you a safe place to break things. The downside to this workflow is that you must be online to accomplish anything.