Add OpenShift hooks

This commit is contained in:
Graham Kaplan
2014-05-17 13:34:42 -07:00
parent e5bf3f5a5c
commit a2f2f630a4
3 changed files with 13 additions and 1 deletions
+4
View File
@@ -0,0 +1,4 @@
#!/bin/bash
# The logic to stop your application should be put in this script.
kill -9 `ps -ef | grep "rails server" | grep -v grep | awk '{ print $2 }'` > /dev/null 2>&1
exit 0