SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    india
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Deploying Ruby on Rails application

    Hi

    i have developed a small apllication in ruby on rails .is it possible that i deploy it on the server with some binaries or compiled code.

    I donot want to give the source code ,if it is somehow possible then direct me .

    Thanks a lot.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Ruby code doesn't compile. You might be able to find some obfuscators to help make it more difficult to read your code but that's about it.

  3. #3
    SitePoint Guru silver trophy Luke Redpath's Avatar
    Join Date
    Mar 2003
    Location
    London
    Posts
    794
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is always RubyScript2Exe but I don't know if anybody has got that working with Rails.

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Yakima WA.
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah people have gotten rails apps to work with rubyScript2Exe. But the thing is that your source code will still be available to your client. rubyScript2Exe creates a compressed archive with everything you need to run you app but when it runs it unpacks your source code into /tmp and then your client could just grab the source there. So there isn't a real way to obfuscate your ruby code at this point. You could always host the solution yourself and put a box at the clients location and not giving them root on it.

  5. #5
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Will this be possible with Ruby 2.0 and Rite VM?? I don't mean real compilation, but to byte code which cannot be converted back to normal ruby code.

  6. #6
    SitePoint Zealot
    Join Date
    Nov 2004
    Location
    Yakima WA.
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes it will be possible. But the byte code could be re-assembled to ruby if you wanted it enough. It would be pretty tough though. There is a cool cgi script on YARV author's website here: http://www.atdot.net/yc/ You can paste your ruby code and see what the bytecode looks like for YARV

    Cheers-

    -Ezra


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •