Createdb: erro: falha ao criar banco de dados: ERRO: banco de dados "discourse" já existe

That’s strange. I don’t see how that could happen, as such an error should get caught when the code was committed. You might just try to rebuild again.

I see that you have the unsupported-install tag chosen, but this looks like a standard install to me.

2 curtidas