I'm currently having a problem with my Vapor application: In my tests, and locally on my machine, an endpoint (returns an array of objects after filtering & sorting) works exactly as expected. But on the server (both on Heroku & in my Docker production environment) it responds with an empty array. Now I'd like to try out some database requests to determine the part that behaves differently than expected on the server – but I can't find an easy way to do it. I already set the
trace on Heroku (my staging/dev server), now I can see the entire SQL query, but it all looks correct.
I really need to run some real Vapor db requests code in my server environment – is there an easy way to do it like with
rails console in Ruby on Rails? If no, what's the closest thing to it? Is there a workaround? And can we add it to a future version of Vapor?