Más contenido relacionado La actualidad más candente (20) Similar a Foreman - Process manager for applications with multiple components (20) Más de Stoyan Zhekov (17) Foreman - Process manager for applications with multiple components17. XMPP Bot Web Frontend
(Blather) (Rails)
18. XMPP Bot Web Frontend
(Blather) (Rails)
TWT Stream
(Event Machine)
19. XMPP Bot Web Frontend
(Blather) (Rails)
TWT Stream API
(Event Machine) (Sinatra)
20. XMPP Bot Web Frontend
(Blather) (Rails)
TWT Stream API
(Event Machine) (Sinatra)
BGND Jobs
(Resque)
21. XMPP Bot Web Frontend
(Blather) (Rails)
TWT Stream API
(Event Machine) (Sinatra)
BGND Jobs Cronjobs
(Resque) (Clockwork)
23. HOW TO START THEM?
• rails: rails server thin -p $PORT
• api: rackup -s thin -p $PORT -E production
24. HOW TO START THEM?
• rails: rails server thin -p $PORT
• api: rackup -s thin -p $PORT -E production
• bot: ruby jabber_bot.rb -D
25. HOW TO START THEM?
• rails: rails server thin -p $PORT
• api: rackup -s thin -p $PORT -E production
• bot: ruby jabber_bot.rb -D
• cron: clockwork clock.rb
26. HOW TO START THEM?
• rails: rails server thin -p $PORT
• api: rackup -s thin -p $PORT -E production
• bot: ruby jabber_bot.rb -D
• cron: clockwork clock.rb
• jobs: QUEUE=* rake resque:work
27. HOW TO START THEM?
• rails: bundle exec rails server thin -p $PORT
• api: bundle exec rackup -s thin -p $PORT
• bot: bundle exec ruby jabber_bot.rb -D
• cron: bundle exec clockwork clock.rb
• jobs: QUEUE=* bundle exec rake resque:work
30. PROCFILE
rails: bundle exec rails server thin -p $PORT
api: bundle exec rackup -s thin -p $PORT
bot: bundle exec ruby jabber_bot.rb -D
cron: bundle exec clockwork clock.rb
jobs: QUEUE=* bundle exec rake resque:work
36. OS INTEGRATION
$ sudo foreman export upstart /etc/init -a myapp
[foreman export] writing: /etc/init/myapp.conf
[foreman export] writing: /etc/init/myapp-web.conf
[foreman export] writing: /etc/init/myapp-web-1.conf
$ sudo start myapp
Notas del editor \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n