Coder Social home page Coder Social logo

Comments (11)

tobias avatar tobias commented on July 21, 2024

Jeffrey:

It looks like there is an issue building the gem on !windows, then using it on windows. If I build the gem on windows, it works. I'm trying to figure out why now. There is a 1.0.0.beta1 of torquebox-backstage on rubygems, but it will not work on windows, so don't use it :)

I hope to have a beta2 today that does work on windows.

Toby

from backstage.

tobias avatar tobias commented on July 21, 2024

Scratch what I said about where the gem was built - that doesn't seem to matter. The difference is starting TorqueBox via rake torquebox:run and executing standalone.bat. If you use the rake task, backstage works. If you use the bat script, it doesn't. In the latter case, it appears that TorqueBox isn't adding the root of the app to the load path. Which is odd, considering that the rake task just calls the bat script. I'll keep digging.

from backstage.

rurounijones avatar rurounijones commented on July 21, 2024

Hello tobias,

Sorry for not including how I start torquebox in the original submission. It never occurred to me that that could be a problem.

Yes, to confirm on my Linux install I use the gems and torquebox run and have no problems. But on windows I use the binary distribution and start the server using the bat file.

from backstage.

ciaranarcher avatar ciaranarcher commented on July 21, 2024

I'll just add that standalone.bat and rake torquebox:run both throw the same error described above for me on Windows 7.

from backstage.

tobias avatar tobias commented on July 21, 2024

Alrighty, I think I've got something that works. Please give it a try with gem install --pre torquebox-backstage. This should give you 1.0.0.beta2.

from backstage.

rurounijones avatar rurounijones commented on July 21, 2024

Yep, that fixed it for me!

from backstage.

ciaranarcher avatar ciaranarcher commented on July 21, 2024

I have JRUBY_OPTS set to 1.9 and I can build the gem as described above. When I run jruby -S backstage deploy I get the following error:

TypeError: can't convert Symbol into Integer

I can force this to run by using jruby --1.8 -S backstage deploy

Anyway, when I get that deployed I get the same error: org.jruby.exceptions.RaiseException: (LoadError) no such file to load -- backstage

So I guess I'm wondering if everything should work under 1.9?

from backstage.

tobias avatar tobias commented on July 21, 2024

@ciaranarcher - I can't recreate your issue in --1.9 mode. You say you are building the gem yourself - have you pulled the latest source? Have you tried to use the 1.0.0.beta2 gem via gem install --pre torquebox-backstage? If the beta2 gem does not work for you, can you give me a gist of the standalone.bat output and run jruby --debug -S backstage deploy and gist that output as well?

from backstage.

ciaranarcher avatar ciaranarcher commented on July 21, 2024

Hi Tobias

Sorry about the delay in testing this - I am happy to say I can run the backstage app! I think I had an old version of the repo.

The only issue now is an error running backstage deploy in --1.9 mode. Here are the details:

https://gist.github.com/1632909

Thanks!

from backstage.

tobias avatar tobias commented on July 21, 2024

Ciaran:

From your gist, it looks like it is still trying to deploy 1.0-dev, which is at this point an old version:

deploy at C:/dev/torquebox/torquebox-2.x/jruby/lib/ruby/gems/1.8/gems/torquebox-backstage-1.0.dev/bin/backstage:42

Can you uninstall that version and install 1.0.0-beta2?

jruby -S gem uninstall torquebox-backstage -v 1.0-dev
jruby -S gem install torquebox-backstage --pre

You'll probably need to run the install command outside of your local backstage git checkout, as it
may pick up the 1.0-dev.gem that is in that dir.

from backstage.

ciaranarcher avatar ciaranarcher commented on July 21, 2024

Hi Tobias, it seems your suggestion to move the install command to outside of the backstage dir did the trick. Look good now on Windows :) Thanks for the help and patience.

from backstage.

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.