Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add a post deploy hook to install Procfile #33

Merged
merged 2 commits into from

1 participant

@robyoung
Owner
  • 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

This depends on https://github.gds/gds/alphagov-deployment/pull/137

robyoung added some commits
@robyoung robyoung Add a post deploy hook to install Procfile
- 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
42e70b5
@robyoung robyoung Remove log directory
This is handled by capistrano at deployment now. The log directory is
created in shared and symlinked into release.
2c0dd88
@robyoung robyoung merged commit 73b3b75 into from
@jabley jabley deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 3, 2013
  1. @robyoung

    Add a post deploy hook to install Procfile

    robyoung authored
    - 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
  2. @robyoung

    Remove log directory

    robyoung authored
    This is handled by capistrano at deployment now. The log directory is
    created in shared and symlinked into release.
This page is out of date. Refresh to see the latest.
View
2  Procfile-read
@@ -1 +1 @@
-web: {{virtualenv-path}}/bin/gunicorn -blocalhost:3038 backdrop.read.api:app
+web: venv/bin/gunicorn -blocalhost:3038 backdrop.read.api:app
View
2  Procfile-write
@@ -1 +1 @@
-web: {{virtualenv-path}}/bin/gunicorn -blocalhost:3039 backdrop.write.api:app
+web: venv/bin/gunicorn -blocalhost:3039 backdrop.write.api:app
View
5 hooks/post_deploy
@@ -0,0 +1,5 @@
+#!/usr/local/env bash
+
+BACKDROP_APP=$(echo $GOVUK_APP_NAME | cut -d . -f 1)
+
+cp Procfile-$BACKDROP_APP Procfile
View
0  log/.gitkeep
No changes.
Something went wrong with that request. Please try again.