Skip to content

Instantly share code, notes, and snippets.

View Kroid's full-sized avatar

George Kroid

  • uchi.ru
  • Russia/Moskow
View GitHub Profile
@Kroid
Kroid / Sentry-Install-Ubuntu-16-04
Last active June 6, 2018 06:58
Setup sentry on Ubuntu 16.04 server
# Project: https://github.com/getsentry/sentry
# Doc: https://docs.getsentry.com/on-premise/server/installation/python/
sudo apt-get update
sudo apt-get install python-virtualenv
sudo apt-get install python-setuptools
sudo apt-get install python-pip
sudo apt-get install libxslt1-dev
sudo apt-get install gcc
# from http://www.onurguzel.com/supervisord-restarting-and-reloading/
Posted byOnur Güzel 7 September 2012 22 Comments on Supervisord: Restarting and Reloading
Supervisord is a great daemon for managing application processes. However it does not have a reload option, and restart works different than we get used to. These command makes the following effects.
service supervisor restart
Restart supervisor service without making configuration changes available. It stops, and re-starts all managed applications.
supervisorctl restart <name>
Restart application without making configuration changes available. It stops, and re-starts the application.
@Kroid
Kroid / fix.rb
Last active December 9, 2019 12:08
gem interactor - hooks inheritance
class ABC
include Interactor
def self.inherited(klass)
klass.class_eval do
before do
p "doing it"
end
after do