Guest User

[Dashing] Thin to Puma

a guest
Oct 23rd, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. 1) sudo apt-get update && sudo apt-get -y upgrade
  2. 2) sudo gem install puma
  3. 3) sudo nano /opt/dashing/rmm_hud/Gemfile
  4. ADD: gem 'puma'
  5.  
  6. 4) sudo nano /opt/dashing/dashing.gemspec
  7.  
  8. MODIFY: Line 23> s.add_dependency('puma')
  9.  
  10. 5) sudo nano /opt/dashing/lib/dashing/app.rb
  11.  
  12. REMOVE: Lines 9 & 122-130
  13. ((You can remove the lines with these 1 command: sudo sed -i 9d /opt/dashing/lib/dashing/app.rb && sudo sed -i 122,+9d /opt/dashing/lib/dashing/app.rb))
  14.  
  15. 6) sudo nano /opt/dashing/lib/dashing/cli.rb
  16. MODIFY: Line 62> command = "bundle exec puma #{port_option} #{args} config.ru"
  17.  
  18. REMOVE: Lines 67-72
  19. ((You can remove the lines with 1 command: sudo sed -i 67,+5d /opt/dashing/lib/dashing/cli.rb))
  20.  
  21. 7) sudo stop thin
  22. 8) cd /opt/dashing/rmm_hud/
  23. 9) sudo bundle install
  24. 10) TEST run: sudo bundle exec puma
  25. 11) END TEST: Ctrl+C
  26.  
  27. Lines 10 & 11 are a dirty hack to get the service to start on the console level of the Linux VM, as im having issues 'demonizing' puma, like how Thin was.
  28.  
  29. /MK.
Advertisement
Add Comment
Please, Sign In to add comment