Skip to main content

Git Push Deploys Like Heroku

Deploy directly from your terminal with git push -- just like Heroku. RailPush implements the Git Smart HTTP protocol so you can push to trigger deploys.

Setup

  1. Create an API key in Settings → API Keys

  2. Add the RailPush remote to your repo:

# Add RailPush as a git remote
git remote add railpush https://<your-api-key>@railpush.com/git/<service-id>.git

# Deploy with a push
git push railpush main
  1. RailPush will build and deploy your service automatically.

How it works

  • Your API key is used as the git username (password can be anything)
  • The push triggers a new deployment from your configured repo_url
  • The branch you push determines which branch gets deployed
  • Deploy status is shown in the git output and on the dashboard
  • You can also get setup instructions via the API: GET /services/:id/git-push

Example output

$ git push railpush main
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
remote: Deploy triggered! ID: dpl-abc123
remote: View at: https://railpush.com/services/svc-xyz
To https://railpush.com/git/svc-xyz.git
abc1234..def5678 main -> main