浏览代码

Added anomaly detection instructions for Heroku

Andrew Kane 8 年之前
父节点
当前提交
5a80950e4f
共有 1 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      README.md

+ 21 - 0
README.md

@@ -325,6 +325,8 @@ anomaly_checks: true
 
 If upgrading from version 1.4 or below, also follow the [upgrade instructions](#15).
 
+If you’re on Heroku, follow [these additional instructions](#anomaly-detection-on-heroku).
+
 ## Data Sources
 
 Blazer supports multiple data sources :tada:
@@ -363,6 +365,25 @@ Have team members who want to learn SQL? Here are a few great, free resources.
 
 For an easy way to group by day, week, month, and more with correct time zones, check out [Groupdate](https://github.com/ankane/groupdate.sql).
 
+## Anomaly Detection on Heroku
+
+Add the [R buildpack](https://github.com/virtualstaticvoid/heroku-buildpack-r) to your app.
+
+```sh
+heroku buildpacks:set --index 1 https://github.com/ankane/heroku-buildpack-r.git\#cedar-14
+```
+
+And create an `init.r` with:
+
+```sh
+if (!"AnomalyDetection" %in% installed.packages()) {
+  install.packages("devtools")
+  devtools::install_github("twitter/AnomalyDetection")
+}
+```
+
+Commit and deploy away.
+
 ## Upgrading
 
 ### 1.5