Skip to content

Instantly share code, notes, and snippets.

@FUT
Last active April 1, 2016 08:37
Show Gist options
  • Save FUT/f5c923fffb7548f8dcbce3217c08cb83 to your computer and use it in GitHub Desktop.
Save FUT/f5c923fffb7548f8dcbce3217c08cb83 to your computer and use it in GitHub Desktop.
Server startup

Remote server

  sudo apt-get install monit

Unomment several lines in monitrc config:

  sudo vim /etc/monit/monitrc
  
  # Search lines and uncomment:
  
  set httpd port 2812 and
    use address localhost  # only accept connection from localhost
    allow localhost        # allow localhost to connect to the server and

Capfile

  require 'capistrano/puma/monit'

Locally

  cap production puma:monit:config
  cap production deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment