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

  • Home
  • SEARCH
  • 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 7668211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:18:17+00:00 2026-05-31T15:18:17+00:00

I have rvm use 1.9.3 and rvmsudo passenger start –socket (sitename).socket as prerequisites to

  • 0

I have “rvm use 1.9.3” and “rvmsudo passenger start –socket (sitename).socket” as prerequisites to get Passenger running under Nginx. Everything else works perfectly, but the question is now how to make sure that all these commands, or some equivalent, work out with Nginx, which boots on system startup. I want this all automated.

This is what my added parts to the nginx.conf look like (# are stuff that apparently works with some configuration of Nginx/passenger, I haven’t tried it at all.)

upstream (sitename)_upstream{
  server unix:/(filepath)
}

server {
  listen 80;
  server_name (url);
  root (filepath);
  access_log (logpath);
  error_log (logpath);
 # passenger_enabled on;
 # rails_spawn_method smart;
 # rails_env development;
  location / {
    proxy_pass http://(sitename)_upstream;
    proxy_set_header Host $host;

  } 

}

So what do I do now?

  • 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-31T15:18:19+00:00Added an answer on May 31, 2026 at 3:18 pm

    The trick with processes that start with the system is to make sure that the parts you care about start with the same permissions and user/group as they did when you were initially setting them up. Assuming a Linux system, processes that start at boot are run in /etc/init/d/<script> and run by root (by default) at boot time. You can change your script to run using su to launch as a separate user — actually most server processes do something like this anyway so they run in a protected user environment.

    Meanwhile RVM is designed to run as a per-user process. I tried a few months back to set up a server with RVM running globally, and I think this was sort of running against the grain of RVM. So in our case, we made sure our web server (Apache in our case, but Nginx has the same option) started so that its child processes — the ones that actually processed the web requests were run as the same user for which RVM was configured. An alternative would be to grant group-writeable privileges to both the Nginx and RVM users, but this is more work.

    The other issue with RVM is that its world is created when the shell script runs — usually the ~/.bash_profile script, and thus, any server that needs to have that same environment may want to run in that shell.

    This all sound very hard, but in practice for us, at least, creating a user account that was the one that apps ran as, and installing RVM as that user, with a little other setup, made it all “just work”, especially for cases where you’re running rake, bundle, capistrano, and other stuff.

    Sorry, this is a little more general than I had hoped, but maybe it’s useful…

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

Sidebar

Related Questions

I have two websites running on the same server. Both use passenger and rvm.
So I have done Gem install newgem (running under rvm) and also sudo gem
I am running my rails 3 project under ruby 1.9.2 with rvm. I use
I have succefully configured RVM to use Ruby 1.9.2 and everything is fine. However
I have to type rvm use ruby-1.9.3 every time I login to my server.
I'm running Ubuntu 11.10 and have installed rvm using the standard instructions listed here
I know how to use RVM, but now I have a weird problem, which
I have upgraded ruby using the following commands with rvm: rvm get head rvm
How can I find /lib/webrat/core/session.rb if I use RVM? I have no idea how
I have tried this a couple of times now. I use rvm and the

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.