machine:
  ruby:
    version:
      2.3.1

checkout:
  post:
    - git submodule sync
    - git submodule update --init # use submodules

# We need to manually git push to Heroku because Lecture Hall depends on
# submodules and Heroku only supports submodules when deploying through git.
deployment:
  master:
    branch: master
    commands:
      - git remote add heroku https://git.heroku.com/lecture-hall.git
      - GIT_SSH_COMMAND="ssh -i ~/.ssh/id_circleci_github" git push heroku

machine:
  ruby:
    version:
      2.3.1

checkout:
  post:
    - git submodule sync
    - git submodule update --init # use submodules

# We need to manually git push to Heroku because Lecture Hall depends on
# submodules and Heroku only supports submodules when deploying through git.
deployment:
  master:
    branch: master
    commands:
      - git remote add heroku ssh://git.heroku.com/lecture-hall.git
      - GIT_SSH_COMMAND="ssh -i ~/.ssh/id_circleci_github" git push heroku

Use SSH transport instead of HTTPS for Heroku
Use SSH transport instead of HTTPS for Heroku
