Created
February 16, 2010 10:28
-
-
Save pjaspers/305441 to your computer and use it in GitHub Desktop.
Restart passenger form emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, see my take on the above: http://gist.github.com/435966