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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:32:58+00:00 2026-05-13T00:32:58+00:00

After upgrading to rails 2.3.5 I got things working again and the tests were

  • 0

After upgrading to rails 2.3.5 I got things working again and the tests were passing. Then all of a sudden when I run the script/server command it now always runs in Test mode which is seen by a simple > puts RAILS_ENV

I have restarted my machine as well as run the script/server command manually setting the environment via -e, but still have no luck.

Does anyone have any idea what the cause of this would be?

** I should note that even when the RAILS_ENV constant is shows up as “test”, the database config that is used is the development.

update

by adding puts RAILS_ENV statements throughout the code I can see that when I add a puts outside the Rails::Initializer.run do |config| block within the environment.rb class that at that point the RAILS_ENV becomes set to “test”. Right before the end of the block it is still set to development.

  • 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-13T00:32:58+00:00Added an answer on May 13, 2026 at 12:32 am

    The reason for the environment change was that, without thinking, I loaded the rspec gem in the development.rb file.

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

Sidebar

Related Questions

After upgrading to Rails 3.1.0 and following David Rice's instructions , all of my
After upgrading a rails 1.2 website to 2.1, the ExceptionNotifier plugin no longer works,
After upgrading from 1.4.2 to 1.5.1 my google analytics ecommerce tracking isnt working. Google
I am getting bad performance after upgrading an application to Rails 3. Before upgrading,
After upgrading to Rails 3, fixtures that refer to other labelled fixtures (for relationships)
Has anyone noticed an exponential difference in load times after upgrading to Rails 3.1.
Everything was working fine in Rails 3.0.14, but after changing gem 'rails', '3.0.14' to
After upgrading to Rails 3.1 any ActiveRecord call has the following result: ArgumentError: wrong
After upgrading my rails project to rails 3.2.2 and Devise 2.0.4, I am no
I'm trying to deploy an application to Heroku after upgrading to Rails 3.1 with

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.