# Deploying R\_o\_R to local servers

**URL:** <https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797>\
**Category:** Rails\
**Created:** [May 27, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797 "2006-05-27T15:53:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [May 27, 2006, 3:53pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/1 "2006-05-27T15:53:09Z")

</div>

Hi!

I’m pretty amazed by the features of RoR so far. But, as I come from the  
desktop application development, my clients expect to run the magic on  
their domain rather on a foreign one. Also I feel uncomfortable giving  
away my RoR code to some hosting company, because I’m planning to do a  
large application.

As I understand, RoR is designed to run on central web-servers and not  
on client’s ones. Nevertheless, is there a way to run this app on a  
client’s server and not to make them able to read the code?

Or, if there’s nothing, let’s put it the other way round: how could a  
solution to this look like? Maybe writing a special Apache-module which  
accesses ruby/rails?

Thanks a lot for your help,  
hawe.

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [May 27, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/2 "2006-05-27T16:35:54Z")

</div>

Well… What you are really looking for is compiled ruby scripts like  
Python has(And PHP with addons). I think that is something they are  
working on for Ruby 2 but I might be wrong on that. I have looked at  
some solutions for protecting the code but I have not been happy with  
any of them. The only thing I have really been satisfied with is to  
simply provide the computer that runs on the site and not give them  
the password.

On 5/27/06, hawe [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> client’s server and not to make them able to read the code?
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [May 27, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/3 "2006-05-27T16:42:09Z")

</div>

You might want to see this:

[http://blog.zenspider.com/archives/2006/05/ruby\_obfuscator.html](http://blog.zenspider.com/archives/2006/05/ruby_obfuscator.html)

and contact Eric H. or Ryan D. about this product.

Michael

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [May 28, 2006, 2:35am UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/4 "2006-05-28T02:35:38Z")

</div>

Uhh. I might be misunderstanding yoi. Of course can all web servers be  
accessed from all arround. If you want to run the Webrick server on  
port 80 you have to start it as root as Linux, BSD and MacOs don’t  
allow normal users to start anything on a port under 1024.

On 5/28/06, Pat L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’m pretty amazed by the features of RoR so far. But, as I come from the  
> solution to this look like? Maybe writing a special Apache-module which  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)
> 
> * * *
> 
> Rails mailing list  
> removed\_email\_address@domain.invalid  
> [http://lists.rubyonrails.org/mailman/listinfo/rails](http://lists.rubyonrails.org/mailman/listinfo/rails)

–

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [May 28, 2006, 2:29am UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/5 "2006-05-28T02:29:19Z")

</div>

Hi,

I’m putting up an app that, initially, will only be used by two users.  
I’m about to buy an Apple box. Is it possible to set up an Apple as a  
WebBrick Server and access from two different locations?

I’ve done this on an XP/Pro box using [ASP.Net](http://ASP.Net).

Thanks,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 3:07pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/6 "2006-06-11T15:07:14Z")

</div>

Good morning,

I’ve committed to developing three applications using RoR.  
I’m planning on using an Apple box to do the development.  
I visited the Apple store in NYC and was very impressed with the choice  
of machines and their associated cost. The sales folks were also very  
helpful.

My question is: can you recommend a book or books that would help me “to  
get me up to speed” with Apple?

Thank you,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 3:35pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/7 "2006-06-11T15:35:34Z")

</div>

On 11/06/06, Pat L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> My question is: can you recommend a book or books that would help me “to  
> get me up to speed” with Apple?

Depends on your background. I found ‘osx for unix geeks’ from o’reilly  
was very  
useful.

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 3:32pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/8 "2006-06-11T15:32:11Z")

</div>

> My question is: can you recommend a book or books that would help  
> me “to  
> get me up to speed” with Apple?

I think you don’t need any book. Apple’s hardware is actually plug  
and play. Apple’s softwares are so intuitive that you will be  
comfortable with them quickly.

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 3:41pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/9 "2006-06-11T15:41:47Z")

</div>

If you are Linux person, you can install linux and not use OS-X.  
If you are a windows person… well… Just install linux 😉 hehe

Kfir

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 3:58pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/10 "2006-06-11T15:58:07Z")

</div>

On 6/11/06, Kfir L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> If you are Linux person, you can install linux and not use OS-X.  
> If you are a windows person… well… Just install linux 😉 hehe

Why install Linux. You already have all the linux software runnable on  
MacOS??

> > > My question is: can you recommend a book or books that would help me “to  
> > > get me up to speed” with Apple?

These is some book called MacOs X the missing manual that some people  
like.  
This is a nice article. There are a few more on this  
[http://www.samspublishing.com/articles/article.asp?p=132546&seqNum=1&rl=1](http://www.samspublishing.com/articles/article.asp?p=132546&seqNum=1&rl=1)

–

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/11 "2006-06-11T16:35:21Z")

</div>

Hi,  
Thanks for the advice…I like the O’Reilly books and have purchased, at  
your recommendation, “OS X for Unix Geeks…”.  
Good week,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/12 "2006-06-11T16:38:36Z")

</div>

Hi,  
I’ve been using MS XP/Pro but I have used Linux in the past [and liked  
it]. When I buy the Apple box, does it come with Linux installed?

I’ll check out the link you provided…

Ciao,  
pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/13 "2006-06-11T16:23:05Z")

</div>

Good morning,

Thanks for the ‘heads up’…  
I’ll proceed with the purchase…

Next question, the “AWDWR” book gives a caution in regard to Apple  
default installation of RoR – it is that the RoR installation that  
comes with the Apple box needs to be ignored and RoR needs to be  
reinstalled…

I’ll probably be using OSX and Tiger…any advice in regard to the  
installation of RoR, Ruby, MySQL, GEMS and Rake?

Good week,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 4:41pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/14 "2006-06-11T16:41:48Z")

</div>

Good morning,  
I’m currently working with MS XP/Pro and [ASP.Net](http://ASP.Net) 2.0 but I have worked  
with both Unix and Linux in the past…So, I’ll pick up the book you  
recommended…  
Ciao,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 5:49pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/15 "2006-06-11T17:49:19Z")

</div>

Good morning Jon,  
Thank you.  
Good week,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 7:25pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/16 "2006-06-11T19:25:57Z")

</div>

On 11 Jun 2006, at 15:40, Pat L. wrote:

> Next question, the “AWDWR” book gives a caution in regard to Apple  
> default installation of RoR – it is that the RoR installation that  
> comes with the Apple box needs to be ignored and RoR needs to be  
> reinstalled…
> 
> I’ll probably be using OSX and Tiger…any advice in regard to the  
> installation of RoR, Ruby, MySQL, GEMS and Rake?

I found the best way was to install DarwinPorts (http://  
[darwinports.opendarwin.org/](http://darwinports.opendarwin.org/)), then use that to install ruby and  
rubygems (sudo port install ruby; sudo port install rb-rubygems). You  
can then install rails, the MySQL bindings etc using rubygems as  
normal. This way it’s trivial to keep everything up-to-date,  
regardless of the operating system upgrades.

For MySQL itself, I just used the standard installer for Mac OS X. I  
had problems trying to run the 64 bit version, so I’d advise using  
the 32 bit PowerPC version even if you’ve got a G5 (chances are  
you’ll be getting an Intel Mac anyway, so you’d want the x86 installer).

Kerry

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 8:10pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/17 "2006-06-11T20:10:35Z")

</div>

Good afternoon Kerry,  
Thank you for all your good advice…I certainly will take it…  
Cheers,  
Pat

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 8:56pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/18 "2006-06-11T20:56:39Z")

</div>

I second the use of DarwinPorts. I really like James Duncan  
Davidson’s article about using it to create a nice Ruby and Rails  
development environment: [http://duncandavidson.com/essay/2006/04/](http://duncandavidson.com/essay/2006/04/)  
portsandbox.

Regards,  
Craig

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 5:04pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/19 "2006-06-11T17:04:44Z")

</div>

On 6/11/06, Pat L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> I’ve been using MS XP/Pro but I have used Linux in the past [and liked  
> it]. When I buy the Apple box, does it come with Linux installed?

No. You don’t need it. You can compile all Linux software righ inside  
MacOS X. Some Linux software that is graphic based already has support  
for OS X but for others you have to use the X server that comes with  
OS X.

–

---

<div class="post-metadata">

**Author:** ![hawe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/8e7dd6/32.png) [@hawe](https://www.ruby-forum.com/u/hawe)\
**Post date:** [June 11, 2006, 9:15pm UTC](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797/20 "2006-06-11T21:15:13Z")

</div>

Hi Craig,  
Thanks for the information…I’ll see if I can get DarwinPorts up and  
running…I’ll probably wind up with an Intel Apple box…  
Cheers,  
Pat

[Next page](https://www.ruby-forum.com/t/deploying-r-o-r-to-local-servers/61797.md?page=2)
