Using Ruby 2.0 on Amazon OpsWorks

前端 未结 4 1240
野趣味
野趣味 2021-02-10 07:09

I\'d like to use Ruby 2.0 on Amazon OpsWorks, so I\'m trying the following:

  • Choose custom cookbooks and set them to my fork of https://github.com/aws/opsworks-cook
4条回答
  •  粉色の甜心
    2021-02-10 07:49

    Deploy ruby 2.0 with rails 4.0 on AWS opsworks

    update stack json

    { "opsworks" : { "ruby_version" : "2.0.0" } }

    update the rails app layer.

    in your 'Rails App Layer', make sure you upgraded rubygem version to be 2.X (default is 1.8.24)

    otherwise you will getting the require mysql2/mysql.rb [loadError] :(

    LoadError: cannot load such file -- mysql2/mysql2

提交回复
热议问题