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 have a simple script which is used to start another program. This other
I tried putting a script i saw together, plus used an existing script to
As I understand (Perl is new to me) Perl can be used to script
I am seeing both of them used in this script I am trying to
I have a TSQL script that is used to set up a database as
Does anyone have a Powershell script to change the credentials used by a Windows
I've used subversion for a while, and used the svnmerge.py script for a while
Has anyone used Pear: Spreadsheet_Excel_Writer ? The Formatting Tutorial lists a script similar to
We used the undocumented xp_fileexist stored procedure for years in SQL Server 2000 and
I'm trying to load up rails in the test environment using a ruby script.

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.