Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用橡胶 gem,并且已将其设置为在橡胶设置文件中使用 m1.small 实例类型。 现在我想通过部署到不同类型的实例(高 CPU 机器、中型实例和小型实例)来使我的部署复杂化。 如何配置橡胶以将不同的实例用于不同的角色?
您需要在橡胶 YAML 文件中设置“image_type”键。
以下是我将数据库实例设置为使用 m1.large 实例类型的方法:
roles: db: cloud_providers: aws: image_type: m1.large