Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Simple question about production mode
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jason  
View profile  
 More options Dec 23 2008, 11:48 pm
From: Jason <stonesoupandboiledfr...@gmail.com>
Date: Tue, 23 Dec 2008 04:48:10 -0800 (PST)
Local: Tues, Dec 23 2008 11:48 pm
Subject: Simple question about production mode
Hi all,
    I have enki running locally, and having been looking through the
code. this is my rails learning experience, and i'm learning quite a
bit. my problem is switching from development to production. this
should be fairly simple, but i cannot figure it out. i have a server
setup on linode, and i'm running passenger. will passenger switch
modes, or do i need to do this.

thanks,
Jason


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Shay  
View profile  
 More options Dec 26 2008, 6:37 am
From: Xavier Shay <xavier-l...@rhnh.net>
Date: Thu, 25 Dec 2008 11:37:15 -0800
Local: Fri, Dec 26 2008 6:37 am
Subject: Re: Simple question about production mode
Jason wrote:
> Hi all,
>     I have enki running locally, and having been looking through the
> code. this is my rails learning experience, and i'm learning quite a
> bit. my problem is switching from development to production. this
> should be fairly simple, but i cannot figure it out. i have a server
> setup on linode, and i'm running passenger. will passenger switch
> modes, or do i need to do this.

 From the passenger user's guide:
http://www.modrails.com/documentation/Users%20guide.html#rails_env

5.8.4. RailsEnv <string>

This option allows one to specify the default RAILS_ENV value.

This option may occur once, in the global server configuration or in a
virtual host configuration block. The default value is production.

I run my own VPS, here is an extract from my httpd.conf (it's pretty
standard - though I really shouldn't have it installed in tmp long term)

LoadModule passenger_module /tmp/passenger/ext/apache2/mod_passenger.so
PassengerRoot /tmp/passenger
PassengerRuby /usr/local/bin/ruby18

NameVirtualHost *:80

<VirtualHost *:80>
     ServerName ausnom.com
     ServerAlias www.ausnom.com
     DocumentRoot /home/xavier/app/ausnom/current/public
     RackEnv production
</VirtualHost>

<VirtualHost *:80>
     ServerName rhnh.net
     ServerAlias www.rhnh.net
     DocumentRoot /home/xavier/app/rhnh-enki/current/public
</VirtualHost>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google