# How to deploy multiple apps on one Mac OSX development machine

**URL:** <https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482>\
**Category:** Rails\
**Created:** [February 4, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482 "2009-02-04T23:42:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 4, 2009, 11:42pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/1 "2009-02-04T23:42:04Z")

</div>

I have split off the User Authentication of our main application into  
it’s own application. I would like have this called from the main  
application. How can I have multiple instances of “script/server”  
running when there’s only one localhost:3000?

I believe I can then simple switch applications by routing.

Thanks.

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 4, 2009, 11:44pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/2 "2009-02-04T23:44:59Z")

</div>

you can use ./script/server -p 4000

LaughingNinja wrote:

> I have split off the User Authentication of our main application into  
> itï¿½s own application. I would like have this called from the main  
> application. How can I have multiple instances of ï¿½script/serverï¿½  
> running when thereï¿½s only one localhost:3000?
> 
> I believe I can then simple switch applications by routing.
> 
> Thanks.

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 4, 2009, 11:46pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/3 "2009-02-04T23:46:46Z")

</div>

Thanks. That was easy 🙂

On Feb 4, 2:44 pm, Nginx L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 5, 2009, 1:58am UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/4 "2009-02-05T01:58:29Z")

</div>

Choose a different port? LOL

Blog: [http://random8.zenunit.com/](http://random8.zenunit.com/)  
Learn rails: [http://sensei.zenunit.com/](http://sensei.zenunit.com/)

On 05/02/2009, at 9:41 AM, LaughingNinja [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 5, 2009, 4:23pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/5 "2009-02-05T16:23:05Z")

</div>

That would me my long term recommendation.  
Passenger makes it easy to manage multiple Rails or Rack Apps

Mathieu R. wrote:

> If you use Mac OS X, you could use Passenger Preference Pane:  
> [http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2](http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2)
> 
> 2009/2/4 Julian L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 5, 2009, 3:38pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/6 "2009-02-05T15:38:01Z")

</div>

If you use Mac OS X, you could use Passenger Preference Pane:  
[http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2](http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2)

2009/2/4 Julian L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 5, 2009, 7:10pm UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/7 "2009-02-05T19:10:56Z")

</div>

Thanks for all your input!

I’m using the alternate port and it’s working. However, I now have  
another issue: How can I send the Session: hash to the other  
application. We have a Calendar application in house where users can  
sign up for training classes. So, once the User is authorized in the  
User Authentication app, I’m redirecting to the calendar app. I need  
the Session: which contains the User object to tie the user to a  
lesson.

What’s your suggestion for passing this between apps?

Thanks again.

On Feb 5, 7:23 am, Nginx L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![LaughingNinja](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e9bcb4/32.png) [@LaughingNinja](https://www.ruby-forum.com/u/LaughingNinja)\
**Post date:** [February 6, 2009, 5:31am UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-apps-on-one-mac-osx-development-machine/159482/8 "2009-02-06T05:31:14Z")

</div>

here are some resources that can get you started

[http://en.oreilly.com/railseurope2008/public/schedule/detail/3557](http://en.oreilly.com/railseurope2008/public/schedule/detail/3557)  
(includes a ppt)

> **[GitHub - fcheung/rails\_conf\_demo: Code used in the Intellectual Scalability...](https://github.com/fcheung/rails_conf_demo/tree/master)**
>
> master

although i think for your needs, you could just exploit the RESTful  
actions design in Rails. For eg, your Calendar app should request  
authentication by specifying a specific controller action in the  
Authentication app (using complete URL, As Far As I Know) and your  
Authentication app should return the Session hash.
