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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:06:55+00:00 2026-05-13T07:06:55+00:00

I used script/server -e production to start rails in production mode. It did and

  • 0

I used script/server -e production to start rails in production mode. It did and I got no errors. However how do I tell if it is in production mode? I tried a non-existent route, and I got a similar error page I did in development.

I thought if under production model, I get the 404 error page that is in my /public folder.

Does it mean it didn’t start in production mode?

Thanks for your 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-13T07:06:55+00:00Added an answer on May 13, 2026 at 7:06 am

    2 easy ways:

    tail -f log/production.log
    

    if there are entries populating that log after you hit the app, you’re in production mode.

    second way:

    in one of your views (probably the layout is good), just add

    <%= "Environment: #{RAILS_ENV}" %>
    

    And that will show you what the environment that you’re running in.

    edit

    You will see the default exception page instead of the actual error pages on any environment if the request is considered “local” (that is from localhost or 127.0.0.1), you can override this by adding this to your ApplicationController

    def local_request?
      false
    end
    

    You can find this method in the docs in the api

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

Sidebar

Related Questions

I installed MAriadb form sources on debian. I used the init script mysql.server. I
I have this Linux script inside our server . This script is used for
We have a production web and database server with SQL Server 2000. (However, a
i used this script to animate some divs with jquery and css. now i
I used this script to create a jQuery accordion. Check out the working jsFiddle
Possible Duplicate: HTML Text Input allow only Numeric input I used this script function
The following script is used to save a file to the desktop: var ba:ByteArray
I use Codeigniter platform to make a website I used this .load script to
I just started trying to build simple GUIs because I've always used command-line script
This one boggles my mind. I've used this same script (different targets of course)

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.