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 7415777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:22:00+00:00 2026-05-29T07:22:00+00:00

I have been trying to deploy a simple rails3 app from my mac(os lion)to

  • 0

I have been trying to deploy a simple rails3 app from my mac(os lion)to an amazon ec2 instance, using capistrano. When I do a cap deploy:setup, I get a connection failed for: http://ec2-xxx-xx-xx-xxx.compute-1.amazonaws.com/ (Errno::ETIMEDOUT: Operation timed out – connect(2))

Here is my config/deploy.rb

set :application, "paperclip_sample_app"
set :deploy_to, "/mnt/#{application}"
set :deploy_via, :copy
set :scm, :git
set :repository,  "."

default_run_options[:pty] = true 
set :location, "http://ec2-xxx-xx-xx-xxx.compute-1.amazonaws.com/"

role :web, location                          # Your HTTP server, Apache/etc
role :app, location                          # This may be the same as your `Web` server
role :db,  location, :primary => true # This is where Rails migrations will run
#role :db,  "your slave db-server here"

set :user, "root"
ssh_options[:keys] = [File.join(ENV["HOME"], ".ssh", "id_rsa")]

I have also enabled ssh on the mac by going to ‘System Preferences’. Under ‘Internet & Networking’, ‘Sharing’ icon and checking the ‘Remote Login’ option.

Also the security groups on the ec2 instance has the port 22 enabled. As a result I am able to ssh into the instance.

Is there anything that I am missing? Any help would be greatly appreciated.

Thanks

  • 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-05-29T07:22:01+00:00Added an answer on May 29, 2026 at 7:22 am

    I needed to change

    set :location, "http://ec2-xxx-xx-xx-xxx.compute-1.amazonaws.com/"
    

    to

    set :location, "ec2-xxx-xx-xx-xxx.compute-1.amazonaws.com"
    

    This fixed the problem.

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

Sidebar

Related Questions

I have been trying to deploy a Rail 3.1.1 app on CentOS 6 This
I have been trying to deploy my WPF app, I created a Setup Project
I have been recently trying to deploy a C# application on a computer that
I have been trying to write a bare-bones ping scanner using Perl for internal
I've been trying to get an app hosted on EngineYard, and have run into
I have been trying to deploy my asp.net mvc site to IIS 7 and
Following is the code that I have been trying to deploy. As you can
I have been working to deploy a relatively large Rails app (Rails 2.3.5) and
I've been trying to deploy a c# console app that I made to a
I've been trying to deploy a simple Django website on my own Ubuntu server.

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.