Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7846941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:45:16+00:00 2026-06-02T17:45:16+00:00

I am using the Rubber gem to deploy on Amazon ec2. It deploys and

  • 0

I am using the Rubber gem to deploy on Amazon ec2.
It deploys and configures the ubuntu instance well but I need to install additional modules (not ruby modules) on the server. how can I run additional scripts using rubber during the deployment?
A code sample would be appreciated since This is the first time I am doing this kind of thing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T17:45:17+00:00Added an answer on June 2, 2026 at 5:45 pm

    I had a similar issue with wanting to install the NewRelic server monitor on all of my EC2 instances. I ended up creating a new role (‘newrelic’) and adding it to all of my servers.

    Making a custom role is straightforward:

    1. Create a config/rubber/deploy-[rolename].rb (by copying an existing one)
      • Change the task namespace
      • Alter the :install, :bootstrap, and :start/:stop/:restart tasks as required for your module
    2. Create a config/rubber/rubber-[rolename].rb
      • Add any variables you need to reference in your deploy file
    3. If necessary, create a config/rubber/role/[rolename] directory and add any required files (such as [rolename]-upstart.conf)
    4. Add the role to your server(s) by running cap rubber:add_role

    It’s easiest to start by copying an existing role and tweaking it to do what you want.

    Jury is still out on whether a custom role is the right way to do this. It makes some sense for newrelic, since that installs a daemon that needs to get monitored, but it feels very heavyweight for most custom configuration.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm setting up an instance on ec2 using the rubber deployment tool. I need
I am trying to deploy a rails3.1 app to EC2 using rubber 1.15.0 gem.
How do i setup queue_classic background jobs on EC2 using the rubber gem? I
Using top it's easy to identify processes that are hogging memory and cpu, but
using a binary search tree I need to add to a vector all int
I'm using a curstom double buffering and want to draw a rubber band line
Using Xcode4.2.1, with a basic PhoneGap template based app. (I say template, but I
I have a custom control that I'm using as a rubber band which paints
Using the C# Facebook SDK 5.0.3 everything works fine whit the client.Get(/me). But when
Using CarrierWave and Amazon S3. CarrierWave config: CarrierWave.configure do |config| config.ensure_multipart_form = false config.permissions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.