-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing "env" directory #1
Comments
Hi,
|
that was also my first thought and I was surprised by the message about missing dir (btw. I'm running it within docker based on Ubuntu 14.04 where env as a binary obviously does exist).
this is why
treats |
I was totally wrong. I wasn't focused and missed the essence of your report. This also reminds me why I wrote So it goes like this: envdir. Set various environment variables as specified by files in the directory dir: If dir contains a file named k whose first line is v, chpst removes the environment variable k if it exists, and then adds the environment variable k with the value v. The name k must not contain =. Spaces and tabs at the end of v are removed, and nulls in v are changed to newlines. If the file k is empty (0 bytes long), chpst removes the environment variable k if it exists, without adding a new variable. And this is how you invoke (deftask prod
"deploy with runit"
[]
(comp
(build)
(runit :env {:redis-instance "localhost"
:geoip-server "http://example.net:9090/json/"
:mongo-url "mongodb://example.com/example-db"})))
And (deftask build
"Builds an uberjar of this project that can be run with java -jar"
[]
(comp
(aot :namespace '#{example.main})
(pom :project 'example
:version "1.0.0")
(uber)
(jar :main 'example.main))) Note: If your application doesn't use environment variables at all, you can try and manually remove the exec chpst -u root java -jar -server $BASE_DIR/$JAR I hope this helps. |
thanks for detailed answer. now, comming back to my initial idea wouldn't it be much easier and less confusing if the |
All my apps use environment variables, so it didn't cross my mind, but sure, what you're proposing makes sense. A PR will be very welcome. Thank you. Bonus points if you make it so that no |
for the following (generated) "run" command:
looks like missing "env" dir in $BASE_DIR prevents jar file from getting executed and log file is flooded with:
would be nice to have "env" dir auto-created :)
The text was updated successfully, but these errors were encountered: