It’s up to you, but ideally, you should have two different environments each living on its own server. You can certainly run both on the same server using two separate ports, though.
Each environment should definitely be using its own database as well.