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

  • Home
  • SEARCH
  • 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 7903361
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:43:50+00:00 2026-06-03T09:43:50+00:00

I decided to test my app in the production environment today. It’s running fine

  • 0

I decided to test my app in the production environment today. It’s running fine in test and dev environments. But when I started a mongrel server in production I got a message about assets not being available so I did:

bundle exec rake assets:precompile

Well that got the app booting up but now my images and css are all resolving to 404s. So I think there must be a checklist of things to do to get a Rails 3 app ready for production. I googled a bit but didn’t see anything like “make sure you check/do all these things before you switch to prod”.

My command to start the server: rails s -e production -p 5000 (because I want to run the prod/test/dev mongrels on the same server right now).

So, what do you do when you switch an app from test to production?

  • 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-06-03T09:43:52+00:00Added an answer on June 3, 2026 at 9:43 am

    Depending on your webserver you may have to change the following setting in config/environments/prodcution.rb from:

    config.serve_static_assets = false
    To:

    config.serve_static_assets = true

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

Sidebar

Related Questions

I was starting to code a library, and decided to do a test, but
I have recently decided to deploy my site test onto my home server using
I just started doing some Android app development, and I decided I'm going to
I want to test something quick in my app so I decided to run
I am using the IMDb API v2.0 located here and I decided to test
I recently finished my project in xcode and decided to test it on my
I have been reading a lot about test-driven development and decided that I want
I've set up a test database to begin unit-testing an app that I've recently
In an app I have released I decided to support devices back to the
I'm writing a geocoding component for an app I'm building, and I decided to

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.