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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:00:54+00:00 2026-05-21T06:00:54+00:00

I set up my rails app on my linode VPS, phusion passenger is installed

  • 0

I set up my rails app on my linode VPS, phusion passenger is installed and working, so is mysql (I know this cause my friend currently is running 2 production apps on it with the same set up). The VPS is running Ubuntu 10.10 and I’m using apache2 with passenger.

I SFTP’d the app to the server, bundle updated, set up my virtual host and specified RailsEnv to be production and paths are all accurate.

I then restarted the server (as root) with
apachectl -k restart
tried to rake db:migrate and it didn’t do anything, so I figured it was because the environment didn’t get changed, which is exactly what happend. If I go into the rails console and type Rails.env it gives me development.

I have no idea why, I did everything that should set it to production? Anyone know what I may have missed? Is there somewhere in the app where I’m supposed to change something to say production environment? I thought that only had to be done in rails 2.x

Thanks in advance for any and all help.

  • 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-21T06:00:55+00:00Added an answer on May 21, 2026 at 6:00 am

    The RailsEnv setting is only for Passenger’s use. It doesn’t affect the commands you type in the shell.

    Use

    RAILS_ENV=production rake db:migrate
    

    and

    RAILS_ENV=production rails console
    

    Or set the RAILS_ENV environment variable in your login shell to production so that you don’t have to append RAILS_ENV=production to the commands you issue:

    export RAILS_ENV=production
    

    (exact command may vary depending on which shell you use; the above works in bash)

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

Sidebar

Related Questions

My rails app is set up using a mysql database. When I do a
I'm working on creating a Rails app that allows users to set availability Sunday
I installed my rails-app via Passenger on my apache but I'm getting a strange
Im working on an Occasion Reminder rails app where users can register then set
Want to set up mysql master-slave replications in rails app. Are there plugins/db adapters
I know how to set the routes root of my rails app to a
In a Rails app, I have foreign key constraints in MySQL which I set
I have a rails app set up with Nginx + Passenger. When i have
I have a rails app set up as an OAuth2 provider (using Doorkeeper). The
I have a Rails app running Mongoid on Heroku and I need to set

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.