Comments (9)
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.
@yogthos thanks for reply. Since this appears to be a local environment issue I'm closing for now.
from conman.
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.
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.
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.
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.
@dviramontes I've just run into the same issue. After some debugging I found out that my global .gitignore
ignored all sql files
from conman.
that would do it :)
from conman.
from conman.
Related Issues (20)
- Error when AOT compiling HOT 1
- Unable to catch specific sql exception HOT 13
- Dynamic table name HOT 1
- java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to java.util.concurrent.Future HOT 10
- Split one query definition file into many smaller ones HOT 2
- is it possible to use component instead of mount?
- Connect To oracle database HOT 10
- From the user namespace how do I reload queries from the REPL? HOT 3
- how to rebind-connection a sql file HOT 10
- Weird behaviour when trying to run a test HOT 2
- SQL query debug HOT 2
- Options are not evaluated in bind-connection(-deref) HOT 1
- Clojure docker build fail for lein compile HOT 1
- would it support sharding-jdbc HOT 3
- Support next.jdbc HOT 14
- ClassCastException when doing a request HOT 2
- Failed parsing from JSON after upgrading from 0.8.4 to 0.8.6 HOT 2
- disconnect! does nothing to return value of connect! HOT 7
- Request for support for HugSQL tuple list queries HOT 4
- Java version incompatibility in 0.9.6 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conman.