简体   繁体   English

流星本地开发环境与生产环境

[英]meteor local dev environment vs production environment

I'm working on a meteor app which runs on UBUNTU Linux EC2, node, and nginx. 我正在开发在UBUNTU Linux EC2,node和nginx上运行的流星应用程序。 However I develop on Mac OS 10.9.5. 但是,我在Mac OS 10.9.5上进行开发。

If my production app is running on Linux, should I attempt to be developing on an OS as close as possible to my production app in order to minimize corner case errors? 如果我的生产应用程序在Linux上运行,我是否应该尝试在尽可能接近我的生产应用程序的操作系统上进行开发,以最大程度地减少极端情况下的错误?

In other words, is it best to replicate server environment in dev? 换句话说,最好在dev中复制服务器环境吗? or do the dev tools for the given job speed up the workflow enough that it's cost effective to work in a different OS, and any errors occurred are really not a huge cost factor, generally speaking for Meteor dev and common Linux server environments? 还是针对给定工作的开发工具能够充分加快工作流程,使其在不同的OS上具有成本效益,并且通常在Meteor开发和常见的Linux服务器环境中,发生的任何错误并不是真正的巨大成本因素?

Usually you cant beat server performance with laptop or desktop. 通常,您无法通过笔记本电脑或台式机击败服务器性能。 So common nix (unix/linux, bsd/osx) environment is great. 因此常见的nix(unix / linux,bsd / osx)环境很棒。 Even Windows is used by web-developers (not great, but OK). Web开发人员甚至都使用Windows(不是很好,但是可以)。

Most important part here is not hardware and OS but LEMP/LAMP software versions. 这里最重要的部分不是硬件和操作系统,而是LEMP / LAMP软件版本。 So try to keep em equal with server. 因此,请尝试使它们与服务器保持一致。 And proper setup all error logs :) 并正确设置所有错误日志:)

We're working with OSX machines for development and deploy to Linux servers and we haven't run into any issues unless there are binary packages involved and we have a fairly large Meteor codebase. 我们正在使用OSX机器进行开发并将其部署到Linux服务器,除非涉及二进制程序包并且拥有相当大的Meteor代码库,否则我们不会遇到任何问题。 We do bundle the app on the server though. 我们确实将应用程序捆绑在服务器上。

Also I'm currently developing a Meteor package with a lot of binary dependencies where there would be significant overhead associated with maintaining cross platform compatibility but using the synced folder feature (with NFS) of Vagrant works pretty good. 另外,我目前正在开发具有很多二进制依赖性的Meteor软件包,其中与维护跨平台兼容性相关的开销很大,但是使用Vagrant的同步文件夹功能(带有NFS)效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM