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

253
Visualizações
Start postgresql db every time using rails server?

I'm trying to locally start my rails server

but do I have to start my postgresql db each time I want to rails s?

I'm new to rails so I'm not sure how this works. I remember not having to do such a thing on something I've worked on before..

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

0

As mentioned in other answers you have to make sure that Postgres is runnign and serving your database. This is not handled by Rails.

Usually you would configure the Postgres server as an OS background service that starts with your system. Which operating system do you use? In case it's MacOS and you're already using Homebrew, I'd recommend using Hombrew services. You can read more about it here: https://github.com/Homebrew/homebrew-services

Basically you'd tell Homebrew to start postgres with your system, like this: brew services start postgres

over 4 years ago · Santiago Trujillo Relatório

0

You can use system commands to run postgresql server automatically on system boot

sudo systemctl enable postgresql 

or

sudo update-rc.d postgresql enable

However it also belongs on how you install postgres

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