LaughingNinja
2009-Feb-04 22:41 UTC
How to deploy multiple apps on one Mac OSX development machine...
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nginx Lova
2009-Feb-04 22:44 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
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.-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
LaughingNinja
2009-Feb-04 22:46 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
Thanks. That was easy :) On Feb 4, 2:44 pm, Nginx Lova <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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. > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Julian Leviston
2009-Feb-05 00:57 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
Choose a different port? LOL Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 05/02/2009, at 9:41 AM, LaughingNinja <glackerman-ITnRlqvgIl2aMJb+Lgu22Q@public.gmane.org> 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. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mathieu Rousseau
2009-Feb-05 10:27 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
If you use Mac OS X, you could use Passenger Preference Pane: http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2 2009/2/4 Julian Leviston <julian-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org>> > Choose a different port? LOL > > Blog: http://random8.zenunit.com/ > Learn rails: http://sensei.zenunit.com/ > > On 05/02/2009, at 9:41 AM, LaughingNinja <glackerman-ITnRlqvgIl2aMJb+Lgu22Q@public.gmane.org> > 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. > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nginx Lova
2009-Feb-05 15:23 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
That would me my long term recommendation. Passenger makes it easy to manage multiple Rails or Rack Apps Mathieu Rousseau wrote:> If you use Mac OS X, you could use Passenger Preference Pane: > http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2 > > 2009/2/4 Julian Leviston <julian-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org>-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
LaughingNinja
2009-Feb-05 18:10 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
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 Lova <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> That would me my long term recommendation. > Passenger makes it easy to manage multiple Rails or Rack Apps > > Mathieu Rousseau wrote: > > If you use Mac OS X, you could use Passenger Preference Pane: > >http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2 > > > 2009/2/4 Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ram
2009-Feb-06 04:30 UTC
Re: How to deploy multiple apps on one Mac OSX development machine...
here are some resources that can get you started http://en.oreilly.com/railseurope2008/public/schedule/detail/3557 (includes a ppt) http://github.com/fcheung/rails_conf_demo/tree/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. On Feb 5, 11:10 pm, LaughingNinja <glacker...-ITnRlqvgIl2aMJb+Lgu22Q@public.gmane.org> wrote:> 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 Lova <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > That would me my long term recommendation. > > Passenger makes it easy to manage multiple Rails or Rack Apps > > > Mathieu Rousseau wrote: > > > If you use Mac OS X, you could use Passenger Preference Pane: > > >http://www.fngtps.com/2008/12/passenger-preference-pane-v1-2 > > > > 2009/2/4 Julian Leviston <jul...-AfxEtdRqmE/tt0EhB6fy4g@public.gmane.org> > > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---