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

186
Visualizações
Changed a value in my development.rb but it did not reflect on nginx server

so i have some json file that grabs the value from config/development.rb

In my development.rb i have this line

config.base_root_url = "XXXXXXsome URLXXXXXXX"

and in my json.jbuilder file at views i have this line

url: Rails.application.config.base_root_url + "views/somesite"

How come, when I change the config.base_root_url value it is not reflected on my nginx hosted domain. but on Localhost , it shows my changes ? i tried restarting my nginx server but its still the same.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Is config/development.rb a file you added? Or do you mean config/environments/development.rb. Your nginx will run the app in production env hence you will need to edit config/environment/production.rb as well.

over 4 years ago · Santiago Trujillo Relatório

0

you have to do changes in config/environments/production.rb file to reflect changes in app running by nginx because it runs you app in production environment.

over 4 years ago · Santiago Trujillo Relatório
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