# How to create exe for my ruby on rails application?

**URL:** <https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020>\
**Category:** Rails\
**Created:** [March 27, 2006, 1:04pm UTC](https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020 "2006-03-27T13:04:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9de0a6/32.png) [@prasad](https://www.ruby-forum.com/u/prasad)\
**Post date:** [March 27, 2006, 1:04pm UTC](https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020/1 "2006-03-27T13:04:07Z")

</div>

Hello all!

```
     Can anyone throw me light to create EXE for my ruby on rails 

```

application. I need to deploy my application at the client’s place and i  
dont feel like exposing the source code. Thanks…  
regards…  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![prasad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9de0a6/32.png) [@prasad](https://www.ruby-forum.com/u/prasad)\
**Post date:** [March 27, 2006, 2:06pm UTC](https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020/2 "2006-03-27T14:06:15Z")

</div>

surjya hazarika wrote:

> ```
> Can anyone throw me light to create EXE for my ruby on rails 
> 
> ```
> 
> application. I need to deploy my application at the client’s place and i  
> dont feel like exposing the source code.  
> That’s not possible at the moment. Ruby isn’t a compiled language. If  
> you absolutely cannot expose your source code, you need to either host  
> it yourself, or supply a black box to put on their network.

---

<div class="post-metadata">

**Author:** ![prasad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9de0a6/32.png) [@prasad](https://www.ruby-forum.com/u/prasad)\
**Post date:** [March 27, 2006, 2:17pm UTC](https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020/3 "2006-03-27T14:17:40Z")

</div>

I haven’t tried this myself, but this looks like what you are looking  
for.

[http://www.erikveen.dds.nl/distributingrubyapplications/rails.html](http://www.erikveen.dds.nl/distributingrubyapplications/rails.html)

Alex Y. wrote:

> surjya hazarika wrote:
> 
> > ```
> > Can anyone throw me light to create EXE for my ruby on rails 
> > 
> > ```
> > 
> > application. I need to deploy my application at the client’s place and i  
> > dont feel like exposing the source code.  
> > That’s not possible at the moment. Ruby isn’t a compiled language. If  
> > you absolutely cannot expose your source code, you need to either host  
> > it yourself, or supply a black box to put on their network.

---

<div class="post-metadata">

**Author:** ![prasad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9de0a6/32.png) [@prasad](https://www.ruby-forum.com/u/prasad)\
**Post date:** [March 27, 2006, 2:48pm UTC](https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020/4 "2006-03-27T14:48:35Z")

</div>

This doesn’t protect your source code at all, it just generates an  
exe version of ruby, but the code is still decompressed and openly  
available. However, I’ve never had a problem with readable code and  
distributing it to customers, none of them have the knowledge or will  
to go dig in my source.

On 27 Mar 2006, at 14:17, Gramam Dongers wrote:

> > > place and i  
> > > dont feel like exposing the source code.  
> > > That’s not possible at the moment. Ruby isn’t a compiled  
> > > language. If  
> > > you absolutely cannot expose your source code, you need to either  
> > > host  
> > > it yourself, or supply a black box to put on their network.

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![prasad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/9de0a6/32.png) [@prasad](https://www.ruby-forum.com/u/prasad)\
**Post date:** [March 27, 2006, 3:52pm UTC](https://www.ruby-forum.com/t/how-to-create-exe-for-my-ruby-on-rails-application/56020/5 "2006-03-27T15:52:08Z")

</div>

This is like google asking “how do I create an .exe of google?”

The point of creating web hosted apps is to not create exe’s.  
heck, exe’s won’t work on macs, Linux, or unix; but web hosted apps  
will.

So back to your question…  
What you really want is to protect your source code from being seen.  
There are two ways I can think of.

1. Copyright the source code, and release it to your client with a  
license or contract. Now they may see your code, but your license should  
regulate what they can do with it. You will have the entire force of  
your government’s and international copyright laws behind you if the  
client breaks the contract or license. Businesses take laws, licenses,  
contracts, and copyrights pretty seriously when they know the terms.

2. Either host the app on a rails hosting service and make it available  
only to your client (Like 37signals does for paid versions of basecamp  
and campfire), or build a stand alone Linux box with an encrypted file  
system. put it at the clients site, connect it to their lan. You will  
then be responsible for continuous maintenance and upkeep of your hosted  
app and its costs.

I would suggest you copyright the work.  
License a copy to your client.  
Allow them to make their own bug fixes and enhancements, but state you  
are not responsible for damage done by their changes.  
Because you are seeking something closed, do not allow the client to  
distribute your source code, or any derivatives of your source code.

State in the license, that the license is the only thing that allows the  
client to use your copyrighted work. State that if the client violates  
the terms of the license, they lose the rights awarded by the license,  
and then they are in violation of copyright laws.

This way the choice is theirs. Either abide by your license, or violate  
copyright laws.

This way you will not be tied to this client forever working to  
constantly update and maintain their systems. Just do the job, get paid,  
follow up with a few months service for free, and move on to other  
clients.

If the job is for a lot of money, it would be wise to pay a lwyer to  
review your license.

\<\< I would, however, suggest using one of the standard open source  
licenses and making your work and service be the driving force behind  
your income. \>\>

If you put the app on a host, you can make the service available to  
other clients and keep control of everything fopr yourself. This is like  
the 37signals model.

Good Luck  
-sean

surjya hazarika wrote:

> Hello all!
> 
> ```
> Can anyone throw me light to create EXE for my ruby on rails 
> 
> ```
> 
> application. I need to deploy my application at the client’s place and i  
> dont feel like exposing the source code. Thanks…  
> regards…  
> removed\_email\_address@domain.invalid
