与Magento合作时,有什么好的方法来开发环境? [英] Whats a good way to approach a development environment when working with Magento?

查看:69
本文介绍了与Magento合作时,有什么好的方法来开发环境?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在研究多站点Magento的实现,我需要一些建议.

Hey guys, I am working on a multi-site Magento implementation and I need suggestions.

我正在与3GB ram一起工作的双核1.8ghz计算机上,发现在将MAMP用于个人开发环境时,它的运行速度非常慢,因此我使用CentOS设置了一个虚拟机,该虚拟机可以模拟实际升级和生产服务器.

I am working on a dual core 1.8ghz machine at work with 3GB ram and have found it to be very slow when using MAMP for my personal development environment, so I have set up a virtual machine using CentOS that mimics the actual staging and production server.

问题是我必须进行更改,将其提交到SVN,然后更新我的虚拟服务器上的存储库,这会浪费大量的生产时间.这个Magento实现是一个多站点/存储,因此它使用大量RAM,因此我需要一个速度稳定的文件系统.

The problem is I have to do my changes, commit them to SVN and then update the repository on my virtual server which is using a crap load of production time. This Magento implementation is a multi site/store so it uses a lot of RAM and I need a stable file system with speed.

我通常在使用WAMP的Windows XP Pro计算机上,但是就像我说的那样,我发现它运行缓慢.有什么方法可以在我的机器上进行开发而又不会减慢其他进程的速度吗?

I am on a Windows XP Pro machine using WAMP normally but like I said I have found that to be slow. Is there any way I could develop it on my machine without it slowing down every other process?

我打开了我的IDE(Aptana),并且大多数时候都打开了Thunderbird以及MySQL Workbench,所以我有很多程序正在运行,而虚拟机专用于这些资源,但是就像我说的那样,连续更新存储库很繁琐.

I have my IDE (Aptana) open and most the time Thunderbird open as well as MySQL Workbench so I have a lot of programs running and the Virtual Machine dedicates those resources, but like I said it it tedious to continuously update the repository.

任何Magento或专家开发人员都可以参与其中吗?我真的很想为我有更多这样的项目做个提前计划,我很想听听你们中其他一些开发人员的工作.

Can any Magento or expert developers weigh in? I really want to plan ahead for when I get more projects like this, and I would love to hear what some of you other developers do.

谢谢, 达伦(Darren)

Thanks, Darren

推荐答案

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

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.

这篇关于与Magento合作时,有什么好的方法来开发环境?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆