Coder Social home page Coder Social logo

Comments (9)

yogthos avatar yogthos commented on June 2, 2024

The only thing that comes to mind is to make sure that queries.sql is on the resource path. If it's at sql/queries.sql, then the path should be resources/sql/queries.sql. I'm not able to reproduce the problem using a fresh Luminus project.

from conman.

dviramontes avatar dviramontes commented on June 2, 2024

@yogthos thanks for reply. Since this appears to be a local environment issue I'm closing for now.

from conman.

dviramontes avatar dviramontes commented on June 2, 2024

actually
@yogthos for curiosity sake, can you try this particular set of options and then deploying to heroku ?
lein new luminus myapp +postgres +swagger +service +http-kit
attempted this from scratch and it gave me the same error

from conman.

dviramontes avatar dviramontes commented on June 2, 2024

running something like:
lein new luminus myapp +postgres +swagger +service +http-kit && cd myapp && git init && git commit -am 'init' && heroku login ... && heroku create && git push heroku master
its able to build everything correctly but towards the end it throws:

java.lang.Exception: conman could not find the query file:sql/queries.sql, compiling:(core.clj:22:1)
remote: Exception in thread "main" java.lang.Exception: conman could not find the query file:sql/queries.sql, compiling:(core.clj:22:1)

could it be that the particular set of profile flags contradict each other in some way ?
For the moment i got around it by removing the +postgres profile flag

from conman.

yogthos avatar yogthos commented on June 2, 2024

Everything looks right to me there. Could you try making a local uberjar and see if it works locally by running lein uberjar and then java -Ddatabase-url="jdbc:postgresql://localhost:5432/dbname?user=user&password=pass" -jar target/myapp.jar.

Another thing to check is that the project is being generated with the latest template. The current version is 2.9.11.14, so you can check README.md for the generated project to see whether it matches. Also check the version of the conman dependency.

from conman.

dviramontes avatar dviramontes commented on June 2, 2024

Check the uberjar. It worked fine locally. Im also using latest template. Closing for now, it appears to be a local environment issue.

from conman.

stefanroex avatar stefanroex commented on June 2, 2024

@dviramontes I've just run into the same issue. After some debugging I found out that my global .gitignore ignored all sql files 😄 (d'oh!) . Adding the sql files to git fixed the problem for me.

from conman.

yogthos avatar yogthos commented on June 2, 2024

that would do it :)

from conman.

dviramontes avatar dviramontes commented on June 2, 2024

@stefanroex 🙏

from conman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.