简体   繁体   English

Ruby On Rails:升级到2.3.11

[英]Ruby On Rails :Upgrading to 2.3.11

What kind of development environment needed to upgrade a webapplication developed in older version of Ruby deployed in Linux to latest version 2.3.11. 需要什么样的开发环境才能将在Linux中部署的旧版本Ruby中开发的Web应用程序升级到最新版本2.3.11。

I am a windows .net developer and looking some help in terms of understanding the development environment. 我是Windows .net开发人员,希望在了解开发环境方面有所帮助。 I know little bit about pearl and ruby. 我对珍珠和红宝石一无所知。

Do i need to install Linux or mac. 我是否需要安装Linux或Mac。 Or can i develop/test in windows and once ready deploy to linux? 还是可以在Windows中进行开发/测试并准备好部署到Linux?

I have a linux server, can i use that as development server and do the Remote desktop from my windows to that for development work? 我有一个Linux服务器,我可以将其用作开发服务器吗?从Windows到该桌面的远程桌面是否可以用于开发工作? What IDE i should get install in that linux server. 我应该在该linux服务器上安装什么IDE。

any help will be appreciated. 任何帮助将不胜感激。

Choice of development environments. 选择开发环境。

While you could develop your app in Windows and then deploy to a Linux server, that's almost never the right choice. 虽然可以在Windows中开发应用程序然后部署到Linux服务器,但这几乎永远不是正确的选择。 Since you already have access to a Linux machine, Windows is certainly not the right choice in this case. 由于您已经可以使用Linux计算机,因此Windows在这种情况下当然不是正确的选择。

As for an IDE on the Linux box, you don't need one. 至于在Linux机器上的IDE,则不需要一个。 Do yourself a huge favor, choose to learn either vim or emacs, suffer with the mental phase shifting for a week, and do all of your work via ssh to the Linux box. 帮自己一个巨大的忙,选择学习vim或emacs,在心理上转移一周,然后通过ssh到Linux机器完成所有工作。 You will be slower in the short term, but the long term payoff is huge. 短期内您会变慢,但长期收益却是巨大的。

I would be willing to bet that you'll lose less time while learning one of those text editors than you will lose by dinking around with Ruby + Windows and then trying to sync that with your Linux environment. 我愿意打赌,在学习这些文本编辑器时,您将比在Ruby + Windows中闲逛然后尝试将其与Linux环境同步所花费的时间更少。

Upgrading Rails to 2.3.11 将Rails升级到2.3.11

This begs the obvious question. 这就引出了一个显而易见的问题。 What version does the app use now? 该应用程序现在使用什么版本? 2.3.* to 2.3.11 is a piece of cake. 2.3。*至2.3.11是小菜一碟。 If you're talking about more ancient code, then plan on some pain and refactoring. 如果您在谈论更古老的代码,请计划一些痛苦和重构。 If the code is really old, then seriously consider going straight to Rails 3. 如果代码真的很旧,那么请认真考虑直接使用Rails 3。

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

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