You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.4 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. {% extends "base.html" %}
  2. {% load staticfiles %}
  3. {% block content %}
  4. <div class="row">
  5. <div class="col-sm-12">
  6. <h1 id="pitch">Get Notified When Your Cron Jobs Fail</h1>
  7. </div>
  8. </div>
  9. <div class="row">
  10. <div class="col-sm-4">
  11. <p class="step-number">1</p>
  12. <p>
  13. Create a ping URL on healtchecks.io
  14. </p>
  15. </div>
  16. <div class="col-sm-4">
  17. <p class="step-number">2</p>
  18. Add a single line at the bottom of your batch processing task:
  19. <ul class="nav nav-tabs" role="tablist">
  20. <li role="presentation" class="active">
  21. <a href="#bash" aria-controls="home" role="tab" data-toggle="tab">Bash</a>
  22. </li>
  23. <li role="presentation">
  24. <a href="#python" aria-controls="profile" role="tab" data-toggle="tab">Python</a>
  25. </li>
  26. </ul>
  27. <div class="tab-content">
  28. <div role="tabpanel" class="tab-pane active" id="bash">
  29. <pre>wget https://healthchecks.io/ping/b2012751-c542-4deb-b054-ff51322102b9/
  30. </pre>
  31. </div>
  32. <div role="tabpanel" class="tab-pane" id="python">
  33. <pre>
  34. >>> import urllib2
  35. >>> urllib2.urlopen("https://healthchecks.io/ping/b2012751-c542-4deb-b054-ff51322102b9/")
  36. </pre>
  37. </div>
  38. </div>
  39. </div>
  40. <div class="col-sm-4">
  41. <p class="step-number">3</p>
  42. Receive an email from healthchecks.io when the task has an issue
  43. </div>
  44. <div id="get-started" class="col-sm-6 col-sm-offset-3">
  45. <h3>E-mail Address to Receive Notifications:</h3>
  46. <form action="{% url 'hc-create-account' %}" method="post">
  47. {% csrf_token %}
  48. <div class="form-group">
  49. <div class="input-group input-group-lg">
  50. <div class="input-group-addon">@</div>
  51. <input
  52. type="email"
  53. class="form-control"
  54. id="id_email"
  55. name="email"
  56. autocomplete="email"
  57. placeholder="Email">
  58. </div>
  59. </div>
  60. <div class="clearfix">
  61. <button type="submit" class="btn btn-lg btn-primary pull-right">
  62. Get Started
  63. </button>
  64. </div>
  65. </form>
  66. </div>
  67. </div>
  68. {% endblock %}