Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tutorial: Rails + RubyScript2Exe = Executable

119 views
Skip to first unread message

Erik Veenstra

unread,
Oct 6, 2005, 5:49:06 AM10/6/05
to
I get a lot of emails about packing and distributing Rails
applications with Tar2RubyScript and RubyScript2Exe. It
obviously wasn't easy to come up with the steps that have to be
taken to transform a Rails application into a standalone
application. Since I never built a Rails application myself, I
wasn't even sure if it was possible at all. That's why I
decided to write a little tutorial:

http://www.erikveen.dds.nl/distributingrubyapplications/rails.html

Propositions for enhancements are welcome...

gegroet,
Erik V. - http://www.erikveen.dds.nl/

Erik Veenstra

unread,
Oct 6, 2005, 4:30:16 PM10/6/05
to
> I get a lot of emails about packing and distributing Rails
> applications with Tar2RubyScript and RubyScript2Exe. It
> obviously wasn't easy to come up with the steps that have to
> be taken to transform a Rails application into a standalone
> application. Since I never built a Rails application myself,
> I wasn't even sure if it was possible at all. That's why I
> decided to write a little tutorial:
>
> http://www.erikveen.dds.nl/distributingrubyapplications/rails.html

I've updated the document. It's now based on Windows instead of
Linux. Might be easier to read and understand for most of us.

Propositions for enhancements are still welcome...

James Britt

unread,
Oct 6, 2005, 5:04:26 PM10/6/05
to
Erik Veenstra wrote:
>>I get a lot of emails about packing and distributing Rails
>>applications with Tar2RubyScript and RubyScript2Exe. It
>>obviously wasn't easy to come up with the steps that have to
>>be taken to transform a Rails application into a standalone
>>application. Since I never built a Rails application myself,
>>I wasn't even sure if it was possible at all. That's why I
>>decided to write a little tutorial:
>>
>> http://www.erikveen.dds.nl/distributingrubyapplications/rails.html
>
>
> I've updated the document. It's now based on Windows instead of
> Linux. Might be easier to read and understand for most of us.
>

RubyScript2Exe is quite tasty. I managed, with minor difficulty, to
package up a standalone Og/Nitro app as well.


James

--

http://www.ruby-doc.org - The Ruby Documentation Site
http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys


Josh Knowles

unread,
Oct 6, 2005, 7:51:57 PM10/6/05
to
I would love to see an example of someone taking this exe and adding the
hooks so it can be registered as a windows service. If anyone has already
done this please pass along the info, if not I will give it a shot this
weekend and report back.

Josh

Phil Tomson

unread,
Oct 7, 2005, 12:38:37 AM10/7/05
to
In article <1128630616....@g14g2000cwa.googlegroups.com>,

Could you also make the Linux version of the document available?

(also, will it work on OS X?)

Phil

Erik Veenstra

unread,
Oct 7, 2005, 3:20:06 AM10/7/05
to
> > > http://www.erikveen.dds.nl/distributingrubyapplications/rails.html
> >
> > I've updated the document. It's now based on Windows
> > instead of Linux. Might be easier to read and understand
> > for most of us.
>
> Could you also make the Linux version of the document
> available?

Sorry, I've overwritten the Linux version with the Windows
version. I thought that a Windows version was readable for
everybody, while a Linux version might be a bit harder to read
for a Windows user.

But don't worry. Every single step on both platforms is the
same. The differences are just textual: back slashes instead of
forward slashes, "c:\>" instead of "#" and "xcopy /s" instead
of "cp -af". That's it.

> (also, will it work on OS X?)

I think so. I've no test environment, but all components used
in the tutorial are available for OS X. It shouldn't be a
problem. Could you test it?

0 new messages