Open arkan opened 10 years ago
Here is an example which reproduces the issue: https://github.com/Arkan/warbler_issue
Thanks for you help
Same problem here creating a non-web application. Since the warbler created jar file had all of the correct dependencies already, i just don't call Bundle.require when i am running the app from a jar and everything gets loaded automatically.
Something like this:
Bundler.require(:default, ENV['MY_APP_ENV']) unless running_from_jar?
I determine if i am running from a jar file based on the existence of a specific file that is not in the jar.
Hi,
I'm trying to package a non-web application using Bundler.
And I get the following message
in my bin/application.rb
I compile and start the application as the following:
bundle exec warble executable jar && java -jar test.jar
I also tried to replace Bundler.require with
And this time it fails with git based gems with the following message: Bundler::GitError: https://token:x-oauth-basic@github.com/user/mygem.git (at master) is not checked out. Please run
bundle install
Am i doing something wrong ? How can I fix that ?
Thanks