Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Typeless changes.

  • Loading branch information...
commit 1dc39c226d923c9544b4b5fbbd6c60d31db5ca5b 1 parent 811ed59
authored October 08, 2012
2  .openshift/action_hooks/build
@@ -3,5 +3,5 @@
3 3
 # available.  Otherwise it will execute while your application is stopped
4 4
 # before the deploy step.  This script gets executed directly, so it
5 5
 # could be python, php, ruby, etc.
6  
-$OPENSHIFT_RUNTIME_DIR/bin/pip install --use-mirrors -r $OPENSHIFT_REPO_DIR/requirements.txt
  6
+$OPENSHIFT_DATA_DIR/bin/pip install --use-mirrors -r $OPENSHIFT_REPO_DIR/requirements.txt
7 7
 
2  .openshift/action_hooks/start
@@ -4,4 +4,4 @@
4 4
 # $OPENSHIFT_INTERNAL_IP:8080
5 5
 APP_NAME=`cat $OPENSHIFT_REPO_DIR/.app_name`
6 6
 cd $OPENSHIFT_REPO_DIR/$APP_NAME
7  
-$OPENSHIFT_RUNTIME_DIR/bin/uwsgi -s $OPENSHIFT_INTERNAL_IP:$OPENSHIFT_INTERNAL_PORT --socket-protocol http --module $APP_NAME.wsgi:application --pp $OPENSHIFT_REPO_DIR/$APP_NAME -d $OPENSHIFT_LOG_DIR/app.log --pidfile $OPENSHIFT_TMP_DIR/uwsgi.pid
  7
+$OPENSHIFT_DATA_DIR/bin/uwsgi -s $OPENSHIFT_INTERNAL_IP:$OPENSHIFT_INTERNAL_PORT --socket-protocol http --module $APP_NAME.wsgi:application --pp $OPENSHIFT_REPO_DIR/$APP_NAME -d $OPENSHIFT_DIY_LOG_DIR/app.log --pidfile $OPENSHIFT_TMP_DIR/uwsgi.pid
5  .openshift/action_hooks/stop
... ...
@@ -1,3 +1,6 @@
1 1
 #!/bin/bash
2 2
 # The logic to stop your application should be put in this script.
3  
-kill `cat $OPENSHIFT_TMP_DIR/uwsgi.pid`
  3
+if [ -f $OPENSHIFT_TMP_DIR/uwsgi.pid ]; then
  4
+    kill `cat $OPENSHIFT_TMP_DIR/uwsgi.pid`
  5
+fi
  6
+exit 0
4  readme.md
Source Rendered
@@ -19,12 +19,12 @@ Download Python2.7 and extract:
19 19
 
20 20
 Build and install Python
21 21
 
22  
-* `./configure --prefix=$OPENSHIFT_RUNTIME_DIR`
  22
+* `./configure --prefix=$OPENSHIFT_DATA_DIR`
23 23
 * `make ; make install`
24 24
 
25 25
 Export new Python path for later configuration (you will need to run this if you logout, etc.):
26 26
 
27  
-* `export PATH=$OPENSHIFT_RUNTIME_DIR/bin:$PATH`
  27
+* `export PATH=$OPENSHIFT_DATA_DIR/bin:$PATH`
28 28
 
29 29
 Check that new Python is used (should be `Python 2.7.3`):
30 30
 

0 notes on commit 1dc39c2

Please sign in to comment.
Something went wrong with that request. Please try again.