How do I package rails with releasy?

147 views
Skip to first unread message

Donald Hughes

unread,
Nov 7, 2013, 3:47:57 PM11/7/13
to ruby...@googlegroups.com
I apologize if this is not the correct group, but since Releasy partially built on OCRA it seems somewhat appropriate.  I was able to package rails with OCRA, but I'm not sure I understand how to use Releasy to accomplish the same thing.  The reason I want to use Releasy is so that I can package for both Windows and Mac.  Do I create a standalone Releasy script that targets the rails app?  My second question is about the best practice for maintaining a Sqlite database embedded in the app.  I've read about some users having issues with OCRA and the path to the database.  Any help is appreciated.  Both OCRA and Releasy are incredible.

Bil Bas

unread,
Nov 7, 2013, 8:12:44 PM11/7/13
to ruby...@googlegroups.com
Releasy just uses Ocra on Windows, so it doesn't really do anything different - it just manages it at a higher level. You shouldn't be able to manage an SQLite database with Ocra (or releasy build:windows:standalone) since the database is extracted every time. If you use build:windows:folder or build:windows:installer, then you create a folder that can be used every time, so you wouldn't be re-creating the database every time you start the application.

I've never tried Releasy with Rails, but it should just work on both Windows and Mac fine.

As far as paths, you should use file-relative paths rather than cwd-relative paths to ensure you use the resources you expect to be using (and this is true in all Ruby applications, whether build into an exe or not).


On 7 November 2013 20:47, Donald Hughes <donald...@gmail.com> wrote:
I apologize if this is not the correct group, but since Releasy partially built on OCRA it seems somewhat appropriate.  I was able to package rails with OCRA, but I'm not sure I understand how to use Releasy to accomplish the same thing.  The reason I want to use Releasy is so that I can package for both Windows and Mac.  Do I create a standalone Releasy script that targets the rails app?  My second question is about the best practice for maintaining a Sqlite database embedded in the app.  I've read about some users having issues with OCRA and the path to the database.  Any help is appreciated.  Both OCRA and Releasy are incredible.

--
You received this message because you are subscribed to the Google Groups "OCRA One-Click Application Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ocra+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Donald Hughes

unread,
Nov 8, 2013, 3:57:03 PM11/8/13
to ruby...@googlegroups.com
Thanks for your help!

I tried adding a releasy rake file in my rails app, but releasy has a dependency on thor-0.14.6, whereas rails has a dependency on thor-0.18.1 (latest version).   I also tried pulling releasy from github to see if the thor dependency had been updated, but the same conflict was there. 

Bil Bas

unread,
Nov 8, 2013, 4:06:03 PM11/8/13
to ruby...@googlegroups.com
I can't remember, but I don't think that thor dependency version is critical. Might be though; ages since I worked on that gem. fork/correct/request pull if you get joy with that!

Bil Bas

unread,
Nov 8, 2013, 4:07:30 PM11/8/13
to ruby...@googlegroups.com
As another alternative, if you aren't living in an ark (Ruby 1.8.7), you can completely remove that dependency from the gemspec. It isn't even used in Ruby 1.9.3+
Reply all
Reply to author
Forward
0 new messages