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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:22:08+00:00 2026-06-14T08:22:08+00:00

I am deploying a Rails 2.3 // Spree app with Capistrano/Unicorn/Foreman/Upstart. The part that

  • 0

I am deploying a Rails 2.3 // Spree app with Capistrano/Unicorn/Foreman/Upstart.

The part that I cannot figure out is how to have the /myapp/shared/sockets/unicorn.sock be automatically created by the foreman/upstart process management (at least that I think the unix socket should come from them).

What’s responsible for creating the unix socket?

  • 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-14T08:22:09+00:00Added an answer on June 14, 2026 at 8:22 am

    Let’s say your configuration is nginx + unicorn . As you probably know , in the config dir you should create a file named unicorn.rb . In this file there is a description how to handle non-static requests , something like this :

    upstream unicapd {
      server unix:/tmp/capd.sock fail_timeout=0;
    }
    

    I’ve named the upstream differently than stated in tutorials , this gives me ability to host a number different applications on the same host .

    Then , in your vhosts dir on the Nginx configuration you put something like this (let’s say your host file is ‘vhosts/myconf.conf’:

    location @unicorn1 {
    proxy_pass http://unicapd;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_redirect off;
       }
    

    Here you see the instruction to nginx to serve non-static requests from the place , named “http://unicapd” , which is related to your unicorn.rb config file . This configuration is triggered by a file , which is in your init.d (in case you’re running Debian) directory .

    Summary : When you say bundle exec unicorn –restart , the script in your init.d triggers the code , forming a “special” file /tmp/capd.sock , which serves the dynamic content from you Rails app.

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

Sidebar

Related Questions

I have a Rails 3.2 app that I'm deploying on the Heroku Cedar stack.
I have a Rails app that I'm developing on Windows and deploying to Linux.
When deploying my Rails App to Linode via Capistrano/Unicorn, when running this command bundle
I am deploying my first rails app using passenger and capistrano. every thing is
When deploying my Rails app via Capistrano, the very last thing it tries to
Is there anyone out there that is currently deploying rails applications on a solaris
After deploying my rails 3 app in production I noticed that paths are not
I am deploying my rails 3 app using capistrano, and I want to get
I'm working on deploying a rails app via capistrano, and I'm getting an error
I have some serious issues deploying my rails 3 app. There isn't a post

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.