Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

237
Visualizações
Rails application crashes on production on index page of all resources upon population of data, but works perfectly on local development environment

I have a rails application that works perfectly on development environment but crashes on index page in production, only when there is a record present on the resource.

When there is no record present, the same index page renders just fine. There are no changes on production.log, weirdly enough, even when navigating through the application.

Keep in mind that just the index page crashes, other areas of the application are still accessible when navigating through the url. Also, the resource's new action is able to save and persist the data.

The production server is set up with puma and nginx. There are also no error on Nginx's log, and access log shows proper redirection of the request to the application.

Nginx's access log:

nginx access log

I have also tried to run the application on local environment in production mode, but it crashes on the first login page.

Upon speculation that i might have messed up on i18n setup, I tried to run the application by first removing i18n from the application and secondly by re-configuring i18, both of which didn't present any changes to the problem.

There are no any complicated calculations on index method of controllers of all three resource. I am simply returning all the records in an instance variable, that's it.

I am using RoR-6

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda