Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby rainbows/unicorn start faye and rails

Is there a way i can start both faye and rails apps together in rainbows/unicorn.

Right now i'm using rainbows to start faye/private_pub app but would like to start rails also with it

like image 426
Arjun Ramesh Avatar asked Jan 26 '26 04:01

Arjun Ramesh


1 Answers

Do you know Foreman?

With foreman you can set the commands to start your app on a single file, like this

web: bundle exec start_app_command
faye: bundle exec start_faye_command

and then, just run bundle exec foreman start and foreman will run both rails and faye

like image 66
Luiz E. Avatar answered Jan 28 '26 20:01

Luiz E.