Ruby on rails 将Ruby站点从EngineYard迁移到Heroku

Ruby on rails 将Ruby站点从EngineYard迁移到Heroku,ruby-on-rails,ruby,heroku,refinerycms,engineyard,Ruby On Rails,Ruby,Heroku,Refinerycms,Engineyard,作为一个更大项目的一部分,我的任务是迁移一些现有的Ruby on Rails站点(使用旧版本的refinerycms 0.9.6.34构建,至少这是源文件中列出的版本)。我通常不与Ruby一起工作,所以我有点不知所措。以前的开发人员只是简单地提交了最新的git转储和db转储 我首先尝试让这个站点在Ubuntu 11.10本地机器上本地运行,然后进行测试Heroku安装。如果可以直接将他们提供的文件推送到Heroku,那么我可以试试,但我的理解是,我需要让一切正常工作,然后使用Heroku的工具进

作为一个更大项目的一部分,我的任务是迁移一些现有的Ruby on Rails站点(使用旧版本的refinerycms 0.9.6.34构建,至少这是源文件中列出的版本)。我通常不与Ruby一起工作,所以我有点不知所措。以前的开发人员只是简单地提交了最新的git转储和db转储

我首先尝试让这个站点在Ubuntu 11.10本地机器上本地运行,然后进行测试Heroku安装。如果可以直接将他们提供的文件推送到Heroku,那么我可以试试,但我的理解是,我需要让一切正常工作,然后使用Heroku的工具进行部署

以前的开发人员说他们使用的是ruby 1.8.7,所以在Ubuntu中我做了以下工作:

aptitude install ruby1.8 ruby1.8-dev ruby1.8-full
aptitude install rubygems1.8
我已经还原了数据库,并且在config目录中对database.yml进行了更改,以指向还原的数据库

当我尝试从提取的源目录的根目录运行“bundle install”时,我得到:

Invalid gemspec in [/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date format in specification: "2012-03-14 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date format in specification: "2012-03-21 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid date format in specification: "2012-03-19 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid date format in specification: "2012-04-03 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date format in specification: "2012-03-14 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date format in specification: "2012-03-21 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid date format in specification: "2012-03-19 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid date format in specification: "2012-04-03 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/mail-2.4.4.gemspec]: invalid date format in specification: "2012-03-14 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/tilt-1.3.3.gemspec]: invalid date format in specification: "2011-08-25 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/mime-types-1.18.gemspec]: invalid date format in specification: "2012-03-21 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/sass-rails-3.2.5.gemspec]: invalid date format in specification: "2012-03-19 00:00:00.000000000Z"
Invalid gemspec in [/var/lib/gems/1.8/specifications/jquery-rails-2.0.2.gemspec]: invalid date format in specification: "2012-04-03 00:00:00.000000000Z"
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.3)
Using builder (3.0.0)
Using activemodel (3.2.3)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Installing tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.3)
Installing mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Installing mail (2.4.4)
Using actionmailer (3.2.3)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.3)
Using activeresource (3.2.3)
Using acts_as_indexed (0.7.8)
Using awesome_nested_set (2.1.3)
Using babosa (0.3.7)
Using bcrypt-ruby (3.0.1)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.7.3)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.3)
Using coffee-rails (3.2.2)
Using orm_adapter (0.0.7)
Using warden (1.1.1)
Using devise (2.0.4)
Using dragonfly (0.9.12)
Using friendly_id (4.0.6)
Using paper_trail (2.6.3)
Using globalize3 (0.2.0)
Installing jquery-rails (2.0.2)
Using bundler (1.1.4)
Using rails (3.2.3)
Using sass (3.1.19)
Installing sass-rails (3.2.5)
Using truncate_html (0.5.5)
Using uglifier (1.2.4)
Using will_paginate (3.0.3)
Using refinerycms-core (2.0.4)
Using refinerycms-authentication (2.0.4)
Using refinerycms-dashboard (2.0.4)
Using refinerycms-images (2.0.4)
Using seo_meta (1.3.0)
Using refinerycms-pages (2.0.4)
Using refinerycms-resources (2.0.4)
Using refinerycms (2.0.4)
Using routing-filter (0.3.1)
Using refinerycms-i18n (2.0.0)
Using sqlite3 (1.3.6)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
显然,需要解决无效gemspec的错误,但另一件令我困扰的事情是:

Using refinerycms-core (2.0.4)
Using refinerycms-authentication (2.0.4)
Using refinerycms-dashboard (2.0.4)
Using refinerycms-images (2.0.4)
Using seo_meta (1.3.0)
Using refinerycms-pages (2.0.4)
Using refinerycms-resources (2.0.4)
Using refinerycms (2.0.4)
Using routing-filter (0.3.1)
Using refinerycms-i18n (2.0.0)

因为GEM文件中列出的refinerycms版本为0.9.6.34

说到Ruby世界,我有点不知所措,所以非常感谢您的帮助

谢谢

更新 根据请求,该文件如下所示:

source 'http://rubygems.org'

gem 'refinerycms', '= 0.9.6.34'
gem 'rails', '~> 2.3.14'

gem 'mysql2', '~> 0.2.18'

gem 'hpricot'
gem 'rmagick', '= 2.12.2'
此外,这是Gemfile.lock文件中的内容:

GEM
  remote: https://rubygems.org/
  specs:
    actionmailer (3.2.3)
      actionpack (= 4.2.3)
      mail (~> 2.4.4)
    actionpack (3.2.3)
      activemodel (= 3.2.3)
      activesupport (= 3.2.3)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.1)
      rack (~> 1.4.0)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.1.2)
    activemodel (3.2.3)
      activesupport (= 3.2.3)
      builder (~> 3.0.0)
    activerecord (3.2.3)
      activemodel (= 3.2.3)
      activesupport (= 3.2.3)
      arel (~> 3.0.2)
      tzinfo (~> 0.3.29)
    activeresource (3.2.3)
      activemodel (= 3.2.3)
      activesupport (= 3.2.3)
    activesupport (3.2.3)
      i18n (~> 0.6)
      multi_json (~> 1.0)
    acts_as_indexed (0.7.8)
    arel (3.0.2)
    awesome_nested_set (2.1.3)
      activerecord (>= 3.0.0)
    babosa (0.3.7)
    bcrypt-ruby (3.0.1)
    builder (3.0.0)
    coffee-rails (3.2.2)
      coffee-script (>= 2.2.0)
      railties (~> 3.2.0)
    coffee-script (2.2.0)
      coffee-script-source
      execjs
    coffee-script-source (1.3.3)
    devise (2.0.4)
      bcrypt-ruby (~> 3.0)
      orm_adapter (~> 0.0.3)
      railties (~> 3.1)
      warden (~> 1.1.1)
    dragonfly (0.9.12)
      rack
    erubis (2.7.0)
    execjs (1.4.0)
      multi_json (~> 1.0)
    friendly_id (4.0.6)
    globalize3 (0.2.0)
activemodel (>= 3.0.0)
      activerecord (>= 3.0.0)
      paper_trail (~> 2)
    hike (1.2.1)
    i18n (0.6.0)
    journey (1.0.3)
    jquery-rails (2.0.2)
      railties (>= 3.2.0, < 5.0)
      thor (~> 0.14)
    json (1.7.3)
    mail (2.4.4)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mime-types (1.18)
    multi_json (1.3.6)
    orm_adapter (0.0.7)
    paper_trail (2.6.3)
      activerecord (~> 3.0)
      railties (~> 3.0)
    polyglot (0.3.3)
    rack (1.4.1)
    rack-cache (1.2)
      rack (>= 0.4)
    rack-ssl (1.3.2)
      rack
    rack-test (0.6.1)
      rack (>= 1.0)
    rails (3.2.3)
      actionmailer (= 3.2.3)
      actionpack (= 3.2.3)
      activerecord (= 3.2.3)
      activeresource (= 3.2.3)
      activesupport (= 3.2.3)
      bundler (~> 1.0)
      railties (= 3.2.3)
    railties (3.2.3)
      actionpack (= 3.2.3)
      activesupport (= 3.2.3)
      rack-ssl (~> 1.3.2)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (~> 0.14.6)
    rake (0.9.2.2)
    rdoc (3.12)
      json (~> 1.4)
    refinerycms (2.0.4)
      bundler (~> 1.0)
      refinerycms-authentication (= 2.0.4)
      refinerycms-core (= 2.0.4)
      refinerycms-dashboard (= 2.0.4)
      refinerycms-images (= 2.0.4)
      refinerycms-pages (= 2.0.4)
      refinerycms-resources (= 2.0.4)
    refinerycms-authentication (2.0.4)
      devise (~> 2.0.0)
      orm_adapter (~> 0.0.7)
      refinerycms-core (= 2.0.4)
    refinerycms-core (2.0.4)
      acts_as_indexed (~> 0.7.7)
      awesome_nested_set (~> 2.1.3)
      coffee-rails (~> 3.2.1)
      friendly_id (~> 4.0.1)
      globalize3 (~> 0.2.0)
      jquery-rails (~> 2.0.0)
      rails (>= 3.1.3, < 3.3)
      sass-rails (~> 3.2.3)
      truncate_html (~> 0.5)
      uglifier (>= 1.0.3)
      will_paginate (~> 3.0.2)
    refinerycms-dashboard (2.0.4)
      refinerycms-core (= 2.0.4)
   refinerycms-i18n (2.0.0)
      refinerycms-core (~> 2.0.0)
      routing-filter (>= 0.2.3)
    refinerycms-images (2.0.4)
      dragonfly (~> 0.9.8)
      rack-cache (>= 0.5.3)
      refinerycms-core (= 2.0.4)
    refinerycms-pages (2.0.4)
      awesome_nested_set (~> 2.1.3)
      babosa (!= 0.3.6)
      refinerycms-core (= 2.0.4)
      seo_meta (~> 1.3.0)
    refinerycms-resources (2.0.4)
      dragonfly (~> 0.9.8)
      rack-cache (>= 0.5.3)
      refinerycms-core (= 2.0.4)
    routing-filter (0.3.1)
      actionpack
    sass (3.1.19)
    sass-rails (3.2.5)
      railties (~> 3.2.0)
      sass (>= 3.1.10)
      tilt (~> 1.3)
    seo_meta (1.3.0)
      railties (>= 3.0.0)
    sprockets (2.1.3)
      hike (~> 1.2)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sqlite3 (1.3.6)
    thor (0.14.6)
    tilt (1.3.3)
    treetop (1.4.10)
      polyglot
      polyglot (>= 0.3.1)
    truncate_html (0.5.5)
    tzinfo (0.3.33)
    uglifier (1.2.4)
      execjs (>= 0.3.0)
      multi_json (>= 1.0.2)
    warden (1.1.1)
      rack (>= 1.0)
    will_paginate (3.0.3)

PLATFORMS
  ruby

DEPENDENCIES
  coffee-rails (~> 3.2.1)
  jquery-rails
  rails (= 3.2.3)
  refinerycms (~> 2.0.0)
  refinerycms-i18n (~> 2.0.0)
  sass-rails (~> 3.2.3)
  sqlite3
  uglifier (>= 1.0.3)
GEM
远程:https://rubygems.org/
规格:
actionmailer(3.2.3)
actionpack(=4.2.3)
邮件(~>2.4.4)
actionpack(3.2.3)
活动模型(=3.2.3)
主动支持(=3.2.3)
生成器(~>3.0.0)
erubis(~>2.7.0)
旅程(~>1.0.1)
机架(~>1.4.0)
机架缓存(~>1.2)
机架测试(~>0.6.1)
链轮(~>2.1.2)
activemodel(3.2.3)
主动支持(=3.2.3)
生成器(~>3.0.0)
activerecord(3.2.3)
活动模型(=3.2.3)
主动支持(=3.2.3)
arel(~>3.0.2)
tzinfo(~>0.3.29)
activeresource(3.2.3)
活动模型(=3.2.3)
主动支持(=3.2.3)
activesupport(3.2.3)
i18n(~>0.6)
多重json(~>1.0)
作为索引的行为(0.7.8)
阿雷尔(3.0.2)
awesome_嵌套_套件(2.1.3)
activerecord(>=3.0.0)
巴博萨(0.3.7)
bcrypt ruby(3.0.1)
建筑商(3.0.0)
咖啡架(3.2.2)
咖啡脚本(>=2.2.0)
钢轨(~>3.2.0)
咖啡脚本(2.2.0)
咖啡脚本源
execjs
coffee脚本源(1.3.3)
设计(2.0.4)
bcrypt红宝石(~>3.0)
orm_适配器(~>0.0.3)
钢轨(~>3.1)
典狱长(~>1.1.1)
蜻蜓(0.9.12)
支架
erubis(2.7.0)
execjs(1.4.0)
多重json(~>1.0)
友好id(4.0.6)
全球化3(0.2.0)
activemodel(>=3.0.0)
activerecord(>=3.0.0)
文件记录(~>2)
徒步旅行(1.2.1)
i18n(0.6.0)
旅程(1.0.3)
jquery rails(2.0.2)
钢轨(>=3.2.0,<5.0)
雷神(~>0.14)
json(1.7.3)
邮件(2.4.4)
i18n(>=0.4.0)
mime类型(~>1.16)
树梢(~>1.4.8)
mime类型(1.18)
多线程json(1.3.6)
orm_适配器(0.0.7)
文件记录(2.6.3)
activerecord(~>3.0)
钢轨(~>3.0)
polyglot(0.3.3)
机架(1.4.1)
机架缓存(1.2)
机架(>=0.4)
机架ssl(1.3.2)
支架
机架测试(0.6.1)
机架(>=1.0)
轨道(3.2.3)
actionmailer(=3.2.3)
actionpack(=3.2.3)
活动记录(=3.2.3)
活动资源(=3.2.3)
主动支持(=3.2.3)
捆扎机(~>1.0)
栏杆(=3.2.3)
栏杆(3.2.3)
actionpack(=3.2.3)
主动支持(=3.2.3)
机架ssl(~>1.3.2)
耙(大于等于0.8.7)
rdoc(~>3.4)
雷神(~>0.14.6)
耙(0.9.2.2)
rdoc(3.12)
json(~>1.4)
炼油厂CMS(2.0.4)
捆扎机(~>1.0)
精炼CMS认证(=2.0.4)
精炼CMS核心(=2.0.4)
炼油厂CMS仪表板(=2.0.4)
精炼CMS图像(=2.0.4)
精炼CMS页面(=2.0.4)
炼油厂CMS资源(=2.0.4)
精炼CMS认证(2.0.4)
设计(~>2.0.0)
orm_适配器(~>0.0.7)
精炼CMS核心(=2.0.4)
精炼CMS核心(2.0.4)
作为索引的行为(~>0.7.7)
很棒的嵌套集合(~>2.1.3)
咖啡轨(~>3.2.1)
友好id(~>4.0.1)
全球化3(~>0.2.0)
jquery rails(~>2.0.0)
轨道(>=3.1.3,<3.3)
sass轨道(~>3.2.3)
截断html(~>0.5)
uglifier(>=1.0.3)
将分页(~>3.0.2)
refinerycms仪表板(2.0.4)
精炼CMS核心(=2.0.4)
炼油厂CMS-i18n(2.0.0)
精炼CMS核心(~>2.0.0)
路由筛选器(>=0.2.3)
精炼CMS图像(2.0.4)
蜻蜓(~>0.9.8)
机架缓存(>=0.5.3)
精炼CMS核心(=2.0.4)
精炼CMS页面(2.0.4)
很棒的嵌套集合(~>2.1.3)
巴博萨(!=0.3.6)
精炼CMS核心(=2.0.4)
搜索引擎优化元数据(~>1.3.0)
炼油厂CMS资源(2.0.4)
蜻蜓(~>0.9.8)
机架缓存(>=0.5.3)
精炼CMS核心(=2.0.4)
路由筛选器(0.3.1)
actionpack
sass(3.1.19)
sass轨道(3.2.5)
钢轨(~>3.2.0)
sass(>=3.1.10)
倾斜(~>1.3)
seo_meta(1.3.0)
钢轨(>=3.0.0)
链轮(2.1.3)
徒步旅行(~>1.2)
机架(~>1.0)
倾斜(~>1.1,!=1.3.0)
sqlite3(1.3.6)
雷神(0.14.6)
倾斜(1.3.3)
树梢(1.4.10)
多语言文字
多克隆(>=0.3.1)
截断html(0.5.5)
tzinfo(0.3.33)
丑八怪(1.2.4)
execjs(>=0.3.0)
multi_json(>=1.0.2)
监狱长(1.1.1)
机架(>=1.0)
将分页(3.0.3)
平台
红宝石
依赖关系
咖啡轨(~>3.2.1)
jquery rails
轨道(=3.2.3)
炼油厂CMS(~>2.0.0)
精炼CMS-i18n(~>2.0.0)
sass轨道(~