Rollbar deploy and sourcemap integration with Hatchbox
It would be nice if Hatchbox could automatically push deploy information to Rollbar. It would also be nice if it could push sourcemaps after deploy but that might be more complicated.
You can add this line to your deploy script to push deploy info to Rollbar: https://docs.rollbar.com/docs/bash
Depending on what you want to do with sourcemaps, you can also add them into the end of your deploy script as well.
-
Joel Schneider commented
I think the `git rev-parse --verify HEAD` is being run in the current directory which isn't a git repository. It looks like `tail -n1 ../../REVISION` works in its place though. Is that behavior I can rely on not changing?