Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Add a post deploy hook to install Procfile
Browse files Browse the repository at this point in the history
- Virtual environment will be linked in to the current directory in
  'venv'
- Procfile now gets created by the post deploy hook which is called by
  capistrano
  • Loading branch information
robyoung committed Apr 3, 2013
1 parent f7de43c commit 42e70b5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile-read
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: {{virtualenv-path}}/bin/gunicorn -blocalhost:3038 backdrop.read.api:app
web: venv/bin/gunicorn -blocalhost:3038 backdrop.read.api:app
2 changes: 1 addition & 1 deletion Procfile-write
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: {{virtualenv-path}}/bin/gunicorn -blocalhost:3039 backdrop.write.api:app
web: venv/bin/gunicorn -blocalhost:3039 backdrop.write.api:app
5 changes: 5 additions & 0 deletions hooks/post_deploy
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/local/env bash

BACKDROP_APP=$(echo $GOVUK_APP_NAME | cut -d . -f 1)

cp Procfile-$BACKDROP_APP Procfile

0 comments on commit 42e70b5

Please sign in to comment.