cara menyalakan portnya satu-satu

mongrel_rails start -p 3001 -d

lalu setelah selesai

mongrel_rails start -p 3002 -d

begitu seterusnya


kalo pake mongrel masih gagal, coba pake thin

gem install thin

cara menyalakannya seperti mongrel

thin start -p [nama_port] -d

kali ini masih gagal juga, seperti yg dibilang error message, keliatannya
ruby-nya kurang up to date, sy sendiri pake ruby 1.8.7 dan ini thin maupun
mongrel bisa jalan tanpa ada kendala

2010/2/22 Christeddy <[email protected]>

>
>
> Hallo Mas Adit.. Terimakasih atas balasannya..
> Benar sekali mas Adit..
> command yang mas sebutkan sudah pernah saya coba sebelumnya.
> Tapi utk memastikan, apakah benar seperti ini commandnya :
> #/usr/bin/ mongrel_rails start -p 3001-3010 -d
> Saya sudah mencobanya, namun masih bentrok dengan pidnya.
> Bila dilihat di lognya, pid yg crash tersebut adalah pid dari service
> mongrel_railsnya sendiri.
> Berikut lognya ;
> =======================================================
> ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
> ** !!! PID file log/mongrel.pid already exists. Mongrel could be running
> already. Check your log/mongrel.log for errors.
> ** !!! Exiting with error. You must stop mongrel and clear the .pid before
> I'll attempt a start.
> =======================================================
>
> Terimakasih, sebelumnya..
>
>
> --- In [email protected] <id-ruby%40yahoogroups.com>, Aditya
> Agustyana <aditya.ja...@...> wrote:
> >
> > kalo pid-nya crash kemungkinan port tsb sudah dipakai oleh aplikasi lain
> >
> > di mode production, rails sebetulnya umum berjalan di banyak port dan itu
> > mau pake thin atau mongrel tidak masalah, kalo saya biasa menyalakan dari
> > port 3001 - 3010, ini sebagai backend server
> >
> > cara menyalakannya mongrel_rails start -p [port number] -d atau thin
> start
> > -p [port number] -d
> >
> > -d itu berarti berjalan sbg daemon
> >
> > di depan, port 80 bisa ditangani oleh nginx atau apache bersamaan dgn
> > phusion passenger, frontend web server ini bertugas melayani file2 statis
> > dan sebagai juga sbg load balancer, yang memforward dan membagi2 request
> > secara merata ke port-port yang dinyalakan tadi
> >
> > 2010/2/14 Christeddy <c.para...@...>
>
> >
> > >
> > >
> > > Ya benar.. Maksudnya memang saya mau menjalankan 1 aplikasi dengan
> banyak
> > > port. Dan port-port tersebut dapat berjalan dengan bersamaan..
> Masalahnya
> > > saya ingin menjalankannya dari terminal linux. Namun pada saat saya
> coba,
> > > pid-nya crash..
> > >
> > >
> > > --- In [email protected] <id-ruby%40yahoogroups.com> <id-ruby%
> 40yahoogroups.com>, Karuna Murti
>
> > > <karuna.murti@> wrote:
> > > >
> > > > Bisa coba unicorn gan. Bisa diset workernya lebih dari 1.
> > > > http://unicorn.bogomips.org/
> > > > Menurut benchmark lebih bagus dari mongrel dan passenger.
> > > >
> > >
> http://labs.revelationglobal.com/2009/10/06/mongrel_passenger_unicorn.html
> > > > Dan aye pribadi seneng outputnya gak beda sama mongrel, gak kaya thin
> > > yang
> > > > outputnya gak familiar.
> > > >
> > > > 2010/2/10 Achmad Gozali <gozali@>
> > >
> > > >
> > > > > Maksudnya satu aplikasi dengan banyak port atau banyak aplikasi
> banyak
> > > > > port?
> > > > > kalo satu applikasi banyak port coba lihat mongrel cluster
> > > > >
> > > > > kalo banyak aplikasi banyak port / multi apps di satu host lebih
> > > > > gampang pake
> > > > > phusion passenger CMIIW
> > > > >
> > > > > --Gozali
> > > > >
> > > > > On Jan 28, 2010, at 1:44 PM, Christeddy wrote:
> > > > >
> > > > > > Dear all,
> > > > > >
> > > > > > Bagaimana cara menjalankan ruby server dengan menggunakan banyak
> > > > > > port sekaligus ?
> > > > > > Misalnya, Saya ini menjalankan ruby server untuk port 3001 -
> 3010.
> > > > > > Terima kasih..
> > > > > >
> > > > > > Salam,
> > > > > >
> > > > > > Teddy
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > [Non-text portions of this message have been removed]
> > > > >
> > > > >
> > > > >
> > > > > ------------------------------------
> > > > >
> > > > > ID-Ruby
> > > > > Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk
> segala
> > > > > varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program yang
> dibuat
> > > > > dengan Ruby (Ruby on Rails, JRuby on Rails, Merb)
> > > > >
> > > > > http://rubyurl.com/Q8DD
> > > > > http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > blog : http://adityakircon.blogsome.com
> > ym : kirconboy
> > skype : adit_skype
> >
> > Be Nice. Treat others with the same respect you'd want them to treat you.
> > We're all here to learn together. Be tolerant of others who may not know
> > everything you know. BRING YOUR SENSE OF HUMOR (stackoverflow.com)
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>  
>



-- 
blog : http://adityakircon.blogsome.com
ym : kirconboy
skype : adit_skype

Be Nice. Treat others with the same respect you'd want them to treat you.
We're all here to learn together.  Be tolerant of others who may not know
everything you know. BRING YOUR SENSE OF HUMOR (stackoverflow.com)


[Non-text portions of this message have been removed]



------------------------------------

ID-Ruby
Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk segala varian 
Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program yang dibuat dengan Ruby 
(Ruby on Rails, JRuby on Rails, Merb)

<*> Follow Ruby Indonesia on Twitter
    http://twitter.com/rubyindonesia

<*> Kunjungi Situs Resmi Ruby Indonesia
    http://www.ruby-lang.org/id/

<*> Join Ruby Indonesia on Facebook
    http://rubyurl.com/QV48

<*> Join Ruby Indonesia on LinkedIn
    http://rubyurl.com/eh0i

<*> Kunjungi *arsip milis* id-ruby di
    http://groups.yahoo.com/group/id-ruby/messages
    http://www.mail-archive.com/[email protected]/
    http://rubyurl.com/Q8DD
    http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia

<*> Baca peraturan id-ruby sebelum posting
    http://rubyurl.com/gay1
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/id-ruby/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/id-ruby/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Kirim email ke