简体   繁体   English

将Rails项目从3.2.1降级到2.3.3

[英]downgrading rails project from 3.2.1 to 2.3.3

My first Rails project deploy, and I've run into an issue. 我的第一个Rails项目已部署,但是遇到了一个问题。 The project is Rails 3.2.1, Ruby 1.9.3 Yesterday, I was given the hosting access, and they're having Rails 2.3.3, Ruby 1.8.7 该项目是Rails 3.2.1,Ruby 1.9.3昨天,我获得了托管访问权,他们拥有Rails 2.3.3,Ruby 1.8.7。

If I'll decide to still deploy the app there, what changes do I need to make to it? 如果我决定仍然将应用程序部署到那里,我需要对其进行哪些更改?

Specifically, I'm interested in Gemfile changes. 具体来说,我对Gemfile的更改感兴趣。 Here's my current gemfile: 这是我当前的gemfile:

source 'https://rubygems.org'

gem 'rails', '2.3.3'#'3.2.1'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer'

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

gem 'haml-rails'
gem 'haml'

gem 'omniauth-twitter'

What do I need to change? 我需要改变什么? How do I look-up all the required dependencies and gems versions for old Rails versions? 如何查找旧版Rails所需的所有依赖项和gems版本?

Downgrading from 3.x to 2.3 is the dumbest thing you can do in your case. 从3.x降级到2.3是您在案件中可以做的最蠢的事情。 Install gems locally, or ask your hosting company support department — they have to help. 在本地安装宝石,或询问您的托管公司支持部门 - 他们必须提供帮助。

If you can't, save your time — use Heroku, OpenShift or any other hosting company. 如果不能,请节省时间-使用Heroku,OpenShift或任何其他托管公司。

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

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