machine:
  services:
    - docker
  environment:
    SECRET_KEY_BASE: prophet_orpheus

dependencies:
  pre:
    - curl -Ls https://install.convox.com/linux.zip > /tmp/convox.zip
      && sudo unzip /tmp/convox.zip -d /usr/local/bin

deployment:
  hub:
    branch: master
    commands:
      - convox login $CONVOX_HOST --password $CONVOX_PASSWORD
      - git clone --recursive git://github.com/hackclub/website /tmp/website
        && cd /tmp/website
        && convox deploy | sed 's/docker .*/docker ********/'

machine:
  services:
    - docker
  environment:
    SECRET_KEY_BASE: prophet_orpheus

dependencies:
  pre:
    - curl -Ls https://install.convox.com/linux.zip > /tmp/convox.zip
      && sudo unzip /tmp/convox.zip -d /usr/local/bin

deployment:
  production:
    branch: master
    heroku:
      appname: website-hackclub

Configure CircleCI build for Heroku deployment
Configure CircleCI build for Heroku deployment
