Skip to content

Instantly share code, notes, and snippets.

@pjaspers
Created February 16, 2010 10:28
Show Gist options
  • Save pjaspers/305441 to your computer and use it in GitHub Desktop.
Save pjaspers/305441 to your computer and use it in GitHub Desktop.
Restart passenger form emacs
;; As seen on
;; http://lucky-dip.net/articles/2009/08/06/restart-passenger-from-emacs-using-rinari/
;; Anyway, here is a small snippet of emacs lisp to easily restart the
;; Passenger server for the project you are currently working on. It
;; assumes you have Rinari installed.
(defun restart-passenger ()
"Restart passenger using the current rinari root" (interactive)
(shell-command (concat "touch " (rinari-root) "tmp/restart.txt"))
(message "Passenger restarted"))
;; And assign it to a key
(global-set-key (kbd "C-c ' p") 'restart-passenger)
@dotemacs
Copy link

Hi, see my take on the above: http://gist.github.com/435966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment