Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) sudo apt-get update && sudo apt-get -y upgrade
- 2) sudo gem install puma
- 3) sudo nano /opt/dashing/rmm_hud/Gemfile
- ADD: gem 'puma'
- 4) sudo nano /opt/dashing/dashing.gemspec
- MODIFY: Line 23> s.add_dependency('puma')
- 5) sudo nano /opt/dashing/lib/dashing/app.rb
- REMOVE: Lines 9 & 122-130
- ((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))
- 6) sudo nano /opt/dashing/lib/dashing/cli.rb
- MODIFY: Line 62> command = "bundle exec puma #{port_option} #{args} config.ru"
- REMOVE: Lines 67-72
- ((You can remove the lines with 1 command: sudo sed -i 67,+5d /opt/dashing/lib/dashing/cli.rb))
- 7) sudo stop thin
- 8) cd /opt/dashing/rmm_hud/
- 9) sudo bundle install
- 10) TEST run: sudo bundle exec puma
- 11) END TEST: Ctrl+C
- 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.
- /MK.
Advertisement
Add Comment
Please, Sign In to add comment