Skip to content

Commit

Permalink
from the blue mix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Romo committed Aug 11, 2016
1 parent 32e1062 commit a9a8717
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ deployment:
production:
branch: master
commands:
- cf push banded-master
- cf push banded-master --no-start

development:
branch: dev
Expand Down
6 changes: 6 additions & 0 deletions manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
applications:
- name: banded
memory: 128M
command: sh run.sh
buildpack: https://github.com/cloudfoundry/python-buildpack
7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$VCAP_APP_PORT" ];
then SERVER_PORT=5000;
else SERVER_PORT="$VCAP_APP_PORT";
fi
echo port is $SERVER_PORT
python manage.py runserver --noreload 0.0.0.0:$SERVER_POR

0 comments on commit a9a8717

Please sign in to comment.