简体   繁体   English

如何安装和定位特定版本的Nitrous.io?

[英]How do I install and target a specific version of Nitrous.io?

Just a quick question using nitrous.io. 只是一个使用nitrous.io的快速问题。 Been following a tutorial on treehouse for ruby on rails, now as they use version 3.2 and I was using 4 it just was impossible to follow. 一直在关于woodhouse上的ruby on rails的教程,现在因为他们使用版本3.2而我使用4只是不可能遵循。

So, how do I choose which version of Nitrous.io I'm installing / targeting? 那么,我如何选择我正在安装/定位的Nitrous.io版本? I need to be using 3.2. 我需要使用3.2。

One quick and easy way to handle this would be to install Rails 3.2 alongside with Rails 4. 处理此问题的一种快捷方法是将Rails 3.2与Rails 4一起安装。

gem install rails -v 3.2

From there, you can create a new project with Rails 3.2 with the following command: 从那里,您可以使用以下命令使用Rails 3.2创建一个新项目:

gem _3.2_ new appname

If you are working on an existing project, ensure your Gemfile is specifying gem 'rails', '3.2.0' , and from there you can run bundle install to ensure all dependencies have been installed. 如果您正在处理现有项目,请确保您的Gemfile指定Gemfile gem 'rails', '3.2.0' ,然后您可以运行bundle install以确保已安装所有依赖项。

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

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