1

A lot of services designed for running lightweight apps on clusters (Flynn, Deis, Dokku) are following Heroku's deployment standard of adding a git remote and pushing to it when you want to build and/or deploy an application. The build output is sent back to the user who sent the git push, right in their tty.

How can I set up my own server with git and ssh to do actions on push and relay information back to the user?

Suchipi
  • 153
  • 1
  • 1
  • 5

1 Answers1

1

You should take a look at git hooks. You can have a git hook on the server that is executed when code is pushed to it. My guess is that any output you do in these hooks is relayed to the client per default (not 100% sure though).

Bazze
  • 1,511
  • 9
  • 10