<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by John on Medium]]></title>
        <description><![CDATA[Stories by John on Medium]]></description>
        <link>https://medium.com/@john200Ok?source=rss-95441fb79f6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*rs6i2aKcrp1-hy8_O7uyWA.jpeg</url>
            <title>Stories by John on Medium</title>
            <link>https://medium.com/@john200Ok?source=rss-95441fb79f6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 07:43:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@john200Ok/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I hit 39k iOS app downloads. Here's everything I learned about marketing them]]></title>
            <link>https://medium.com/@john200Ok/i-hit-39k-ios-app-downloads-heres-everything-i-learned-about-marketing-them-d1da4210b30d?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1da4210b30d</guid>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[gtm]]></category>
            <category><![CDATA[ios-development]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Sun, 20 Sep 2026 04:13:28 GMT</pubDate>
            <atom:updated>2026-09-20T04:13:28.773Z</atom:updated>
            <content:encoded><![CDATA[<h3>I failed at apps for years. Now I’ve hit 39k downloads. Here’s everything I learned about marketing them</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yPEdBfbzjGeWzhMQwtJ4Vw.png" /></figure><p><strong>1. App Store Boost</strong></p><p>When an app is just launched on the App Store, Apple usually give a boost for a few days where your app name will get recommended in the autocomplete of the App Store search bar so make sure to target a keyword with good amount of popularity.</p><p>So for example your app is an interior designer ai app, you can use this app name format:</p><p>&lt;popular keyword&gt; - &lt;your app name&gt;</p><p>interior design ai - Miya</p><p>If you get lucky, this will bring hundreds or thousands of downloads in the first week depending on the popularity of the keyword that you targeted.</p><p><strong>2. ASO (App Store Optimization)</strong></p><p>Target high-intent keywords in your app name and subtitle.</p><p>Create high converting screenshots (sell the benefit/outcome instead of features).</p><p>Create an eye catching icon to stand out from the app store search results. This will increase conversion (impressions -&gt; downloads). I use ChatGPT or Nano Banana to generate icons.</p><p><strong>3. SEO (Search Engine Optimization)</strong></p><p>Just a single page website where you’re targeting high-intent keywords that people are searching for on search engines like Google. You can use Google Trends for free to search for high-intent keywords that have good popularity. Or you can also use a paid tool like Ahrefs, Keywords Everywhere etc… but Google Trends is usually good enough as a start.</p><p>In my experience, it’s easier and faster to rank for your target main keyword if it’s present on the domain name itself.</p><p>Another side effect of SEO is there’s a good chance that you’ll also get recommended by LLMs like ChatGPT.</p><p><strong>4. Organic UGC</strong></p><p>Create content that you can cross-post on multiple social media platforms like Tiktok, Instagram, Facebook, Youtube, etc…</p><p>You can use formats like tutorials, problem -&gt; solution, listicle, meme, storytelling.</p><p>You have 2 options:</p><p>a. Short-form videos (e.g, face reaction that catches attention + demo of your app).</p><p>b. Slideshows (3–6 images) which are significantly easier and faster to make. You can scale this to many accounts to maximize reach and chances of going viral. You can do this manually or fully automate it. I personally started the manual way but I have now fully automated it with my own tool called <a href="https://distributionmaxx.com/">DistributionMaxx</a> because I now have 16 accounts and it now takes a lot of time and effort to manually manage them.</p><p>For organic UGC, the funnel is:</p><p>views -&gt; app downloads -&gt; purchases</p><p><strong>5. Apple Search Ads</strong></p><p>You can target high-intent keywords that people are search for in the app store. I recommend reading this free <a href="https://docs.google.com/document/d/1bOXukva76JMLq-xmW4xFpATvLzFvDzKwbfRXaTQWpCQ/edit?_bhlid=c58bdbe062a4e4cf0f49de944ff85a27f61c80a6&amp;tab=t.0">detailed guide</a> written by Ivan Sparrow.</p><p>I hope this post helps someone to get their first users and paying customers.</p><p>Happy to answer any questions if you have any.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1da4210b30d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I built Claude Code for marketing apps to get customers on autopilot]]></title>
            <link>https://medium.com/@john200Ok/i-built-claude-code-for-marketing-apps-to-get-customers-on-autopilot-fbb7ec060981?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbb7ec060981</guid>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Mon, 24 Aug 2026 09:29:55 GMT</pubDate>
            <atom:updated>2026-08-24T09:29:55.706Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQF-Q2agNgKJVW0VX8RJRg.png" /></figure><p>For years I shipped apps nobody ever saw. I always picked building one more feature over creating and posting one more post, because building is comfortable and marketing isn’t. Then I learned the hard way that in the early days: distribution beats product.</p><p>The problem is creating and posting content consistently is brutal. Write, shoot, edit, caption, repeat for the next account. I’d go hard for ten days, burn out, go quiet and lose everything I’d built up.</p><p>So I built the thing I needed. One command writes, produces, captions and schedules a month of content across 10+ TikTok, Instagram, Facebook and YouTube accounts. Runs on your machine, your keys, one-time payment.</p><p>90% off ($250 → $25) for the first 10 people.</p><p>Get it here: <a href="https://distributionmaxx.com/">https://distributionmaxx.com/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbb7ec060981" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Lost All My Google Traffic. ChatGPT Doesn’t Seem to Care]]></title>
            <link>https://medium.com/@john200Ok/i-lost-all-my-google-traffic-chatgpt-doesnt-seem-to-care-ab08c4257194?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab08c4257194</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[geo]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 06:57:17 GMT</pubDate>
            <atom:updated>2026-07-10T06:57:17.146Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qGTEirxNHD5FuqW-rqoAfg.png" /></figure><p>I did an SEO experiment in a very competitive niche.</p><p>Programmatic SEO. A few hundred pages, one template, shipped in a weekend.</p><p>For 5 months it worked. ~50 impressions a day and climbing 📈</p><p>Then two Google updates caught it.</p><p>The May 2026 core update started the slide. The June 2026 spam update finished the job.</p><p>Look at the right side of this chart 👇</p><p>Peak → single digits → 0. In three weeks. And it’s stayed at 0 ever since.</p><p>Now trying to fix it to see if I can revive the site.</p><p>Interestingly, most of this site’s traffic comes from ChatGPT.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab08c4257194" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I built an app for practicing optimism and it reached 732 downloads in 5 days ]]></title>
            <link>https://medium.com/@john200Ok/i-built-an-app-for-practicing-optimism-and-it-reached-732-downloads-in-5-days-444d938b1546?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/444d938b1546</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 01:26:45 GMT</pubDate>
            <atom:updated>2026-07-10T01:26:45.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vr7-AqRuJ3x_sEaZZC3CUw.png" /></figure><p>It’s a simple app that blocks apps until you reframe a negative thought into something positive.</p><p>I’ve been struggling with negative thinking lately so I built the app to train my mind to be more optimistic and thought it might also be useful for others so I published it on the App Store but I didn’t expect that it will get this much traction.</p><p>Built solo in a day, with zero funding and continuously improved it based on feedback. It now has a mood tracker and guided meditation feature too, expanding as a mental health app to also help manage stress and anxiety.</p><p>App Store Link:</p><p><a href="https://apps.apple.com/us/app/optimistpal/id6770231815">https://apps.apple.com/us/app/optimistpal/id6770231815</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=444d938b1546" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Train Our Bodies. Why Don’t We Train Optimism?]]></title>
            <link>https://medium.com/@john200Ok/we-train-our-bodies-why-dont-we-train-optimism-8f17ef54ff69?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f17ef54ff69</guid>
            <category><![CDATA[optimism]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[positive-thinking]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Wed, 08 Jul 2026 03:55:02 GMT</pubDate>
            <atom:updated>2026-07-08T03:55:02.777Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of us practice negative thinking every day without realizing it.</p><p>A minor setback happens at work, and we assume the worst. We make a mistake and start questioning ourselves. Someone doesn’t reply to a message, and our minds immediately jump to negative conclusions.</p><p>The more I noticed this pattern in myself, the more I wondered: if negative thinking is a habit, could optimism be one too?</p><p>Instead of reading another self-help book or trying to force myself to “think positive,” I decided to build something that would make me practice optimism in small moments throughout the day.</p><p>The idea was simple.</p><p>Before I could open certain distracting apps, I’d have to pause and reframe one negative thought into something more balanced or constructive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pMdwgKKM8GIXiKoeJSP1nw.png" /></figure><p>Not toxic positivity. Not pretending everything is perfect. Just training my brain to look at situations from a healthier perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Edj8On8t1kRFc2mK_Ty9tA.png" /></figure><p>I originally built the app for myself.</p><p>I almost didn’t publish it because I assumed it was too niche.</p><p>To my surprise, it reached <strong>732 downloads in its first five days</strong> on the App Store.</p><p>That made me realize something.</p><p>Many of us aren’t looking for another productivity app or another motivational quote. We just want small, practical ways to improve how we think.</p><p>Our mindset isn’t shaped by one big decision. It’s shaped by hundreds of tiny moments we repeat every day.</p><p>If we can unintentionally train ourselves to expect the worst, maybe we can intentionally train ourselves to see possibilities instead.</p><p>If you’d like to try the app, you can download <strong>OptimistPal</strong> here: <a href="https://apps.apple.com/us/app/optimistpal/id6770231815">https://apps.apple.com/us/app/optimistpal/id6770231815</a></p><p>What daily habits have helped you become more optimistic?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f17ef54ff69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SEO Isn’t Dead. Neither Is LLM SEO.]]></title>
            <link>https://medium.com/@john200Ok/seo-isnt-dead-neither-is-llm-seo-a845d975b428?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a845d975b428</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[growth-hacking]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Tue, 07 Jul 2026 08:05:15 GMT</pubDate>
            <atom:updated>2026-07-07T08:05:15.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4RaR8sPE8aQRchVgTjCE3Q.png" /></figure><p>Despite all the talk about SEO becoming obsolete, my experience has been the opposite.</p><p>Over the last three months, SEO and LLM SEO brought my iOS app:</p><ul><li>303 organic downloads</li><li>$647 in sales</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PuQPbcexktqagRreHY7rpw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdKgZQoSYOSKQrrxpV0wiA.png" /></figure><p>The numbers aren’t huge, but they’re enough to show that investing in organic search can pay off. As more people discover apps through both search engines and AI assistants, I think this opportunity will only continue to grow.</p><p>I’m doubling down on the strategy and applying the same playbook to my other apps.</p><p>If you found this useful, follow me for more experiments on SEO, LLM SEO, ASO, and growing indie apps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a845d975b428" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Running Rails 6 System Tests using Chrome Headless and Selenium on Gitlab CI]]></title>
            <link>https://medium.com/@john200Ok/running-rails-6-system-tests-using-chrome-headless-and-selenium-on-gitlab-ci-9b4de5cafcd0?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b4de5cafcd0</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[automated-testing]]></category>
            <category><![CDATA[gitlab]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[selenium]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 09:23:23 GMT</pubDate>
            <atom:updated>2019-11-30T09:23:23.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kaVwZeZoUmuLhw581Fot1g.png" /></figure><p>I recently needed to setup <a href="https://cronmonit.app/">CronMonit</a> on Gitlab CI to automatically run automated tests.</p><p>The system tests works fine on my local development environment but the tests fail when being run inside Gitlab CI.</p><p>This is the error:</p><pre>Selenium::WebDriver::Error::UnknownError: unknown error: Chrome failed to start: exited abnormally<br>(unknown error: DevToolsActivePort file doesn’t exist)<br>(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)</pre><p>Found out that I need to pass the no-sandbox option to headless_chrome like this:</p><pre># File: /test/application_system_test_case.rb</pre><pre>driven_by :selenium, using: :headless_chrome do |option|<br> option.add_argument(“no-sandbox”)<br>end</pre><p>If you’re using cron jobs or scheduled tasks, you can monitor them using CronMonit for free: <a href="https://cronmonit.app/">https://cronmonit.app/</a></p><p>Here’s a blog post on how it works:</p><p><a href="https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0">https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b4de5cafcd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a Rails App With No Downtime and No Hanging Requests]]></title>
            <link>https://medium.com/@john200Ok/deploying-a-rails-app-with-no-downtime-and-no-hanging-requests-77711d3eb64d?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/77711d3eb64d</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 09:21:14 GMT</pubDate>
            <atom:updated>2019-11-30T09:21:14.822Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IdXff_Xz-XObR3cxflwB7Q.png" /></figure><p>While working on CronMonit, I needed a way to be able to do deployments with zero-downtime and zero hanging requests.</p><p><a href="https://cronmonit.app/">CronMonit</a> is a cron monitoring tool and it is able to monitor cron jobs by receiving pings (HTTP requests). A service like this can’t have many downtimes or hanging requests because even just missing a few pings will cause issues for its users. Like a “cron job is down” email notification being sent even if the cron job is not really down. And because I do deployments frequently, having a way to do deployments with zero downtime and zero hanging requests is crucial.</p><p>This is the current tech stack of CronMonit:</p><ul><li>Rails 6</li><li>Puma</li><li>Nginx</li><li>PostgreSQL</li></ul><p>All of them are running on a single $5 DigitalOcean droplet (Ubuntu 18.04 LTS).</p><p>Luckily, it is very easy to a deployment with no downtime and no hanging requests on a rails app using puma web server. Puma has a feature called “phased restart” which kills puma workers one-by-one.</p><p>To use it, just spawn up at least 2 puma workers.</p><p>E.g,</p><p>RAILS_ENV=production bundle exec puma -w 2</p><p>Then when you need to restart puma, use the phased restart feature:</p><p>bundle exec pumactl phased-restart</p><p>Here’s an example scenario that explains the process:</p><ul><li>Do code changes on your local development environment</li><li>Commit or merge the changes to master branch</li><li>Push the changes on master branch to your central git repository (e.g, Github)</li><li>SSH into your server</li><li>cd into the directory of the git repository on your server</li><li>Pull updates from master branch (e.g, git pull origin master)</li><li>Then restart puma using phased restart</li></ul><p>That’s it!</p><p>If you’re using cron jobs or scheduled tasks, you can monitor them using CronMonit for free: <a href="https://cronmonit.app/">https://cronmonit.app/</a></p><p>Here’s a blog post on how it works:</p><p><a href="https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0">https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77711d3eb64d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrating a Rails 6 association from “has and belongs to many” to “has many through”]]></title>
            <link>https://medium.com/@john200Ok/migrating-a-rails-6-association-from-has-and-belongs-to-many-to-has-many-through-2e3ba1361542?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e3ba1361542</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 06:16:35 GMT</pubDate>
            <atom:updated>2019-11-30T06:16:35.666Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OFbRyiJ52ERDzg3-nZ38jQ.png" /></figure><p>While working on <a href="https://cronmonit.app/">CronMonit</a>, I needed a way to add a model validation for checking if a User that will be associated to a Check is a member of its parent Project before the User gets associated using check.users &lt;&lt; user.</p><p>This is the Check model:</p><pre>class Check &lt; ApplicationRecord</pre><pre>  has_and_belongs_to_many :users</pre><pre>  # ... other code removed for brevity</pre><pre>end</pre><p>And this is the User model:</p><pre>class User &lt; ApplicationRecord</pre><pre>  has_and_belongs_to_many :checks</pre><pre>  # ... other code removed for brevity</pre><pre>end</pre><p>So I added this on the Check model:</p><pre>validate :user_is_member_of_parent_project</pre><pre>def user_is_member_of_parent_project</pre><pre>  # validation logic goes here…</pre><pre>end</pre><p>But when I tested it, for some reason the validator gets bypassed when associating a User to a Check using check.users &lt;&lt; user.</p><p>I found out that I needed to use has_and_belongs_to_many association and move the code block above to the join model. Now the problem is I already setup the Check and User model to use the has_and_belongs_to_many association previously so there’s already an existing checks_users table that is being used by the has_and_belongs_to_many association and the table already contains data.</p><p>So below are the steps I did to do the migration and to make sure the old associations of existing Check and User records on the database won’t be broken.</p><ol><li>Replace the has_and_belongs_to_many :users on Check model with:</li></ol><pre>has_many :check_users</pre><pre>has_many :users, through: :check_users</pre><p>2. Replace the has_and_belongs_to_many :checks on User model with:</p><pre>has_many :check_users</pre><pre>has_many :checks, through: :check_users</pre><p>3. Create a CheckUser model</p><pre>class CheckUser &lt; ApplicationRecord</pre><pre>  belongs_to :check</pre><pre>  belongs_to :user</pre><pre>end</pre><p>4. Rename the existing checks_users table to check_users:</p><pre>class RenameChecksUsersToCheckUsers &lt; ActiveRecord::Migration[6.0]</pre><pre>  def change</pre><pre>    rename_table :checks_users, :check_users</pre><pre>  end</pre><pre>end</pre><p>5. Run rake db:migrate.</p><p>That’s it!</p><p>At this point, I already successfully migrated the association from has_and_belongs_to_many to has_many :through.</p><p>Then I added the validation that I need to add by putting it on the CheckUser model. 🙌</p><p>If you’re using cron jobs or scheduled tasks, you can monitor them using CronMonit for free: <a href="https://cronmonit.app/">https://cronmonit.app/</a></p><p>Here’s a blog post on how it works:</p><p><a href="https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0">https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e3ba1361542" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Free and Painless Cron Job Monitoring via CronMonit]]></title>
            <link>https://medium.com/@john200Ok/free-and-painless-cron-job-monitoring-via-cronmonit-7e738bff96b0?source=rss-95441fb79f6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e738bff96b0</guid>
            <category><![CDATA[cronjob]]></category>
            <category><![CDATA[cron]]></category>
            <category><![CDATA[devops-tool]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[John]]></dc:creator>
            <pubDate>Fri, 29 Nov 2019 01:59:25 GMT</pubDate>
            <atom:updated>2019-11-29T01:59:25.043Z</atom:updated>
            <content:encoded><![CDATA[<p>If you ever lost data, money or customers because of a failing cron job that went unnoticed, you’ll know how important it is to monitor cron jobs.</p><p>There are a lot of different ways to monitor a cron job. Here are a couple of examples:</p><ol><li>Instructing cron to always send all output and errors via email: <a href="https://stackoverflow.com/questions/19451680/how-to-save-cronjob-error-to-file-and-email-it">https://stackoverflow.com/questions/19451680/how-to-save-cronjob-error-to-file-and-email-it</a></li><li>Instructing cron to only send an email when an error happens: <a href="https://stackoverflow.com/questions/19451680/how-to-save-cronjob-error-to-file-and-email-it">https://stackoverflow.com/questions/19451680/how-to-save-cronjob-error-to-file-and-email-it</a></li></ol><p>Solution #1 above is very noisy and will bombard your email address with lots of emails especially if you have a lot of cron jobs and they frequently run. The good thing about it is you’ll know if your cron jobs actually ran or an error happened. But this is only useful if you always and immediately check the sent emails.</p><p>Solution #2 above is better but it won’t notify you on some scenarios like cron is not running at all or if the server is down for some reason.</p><p>Another downside by using the solutions above is you’ll need to make sure that your server is able to send emails and make sure the emails doesn’t get marked as spam: <a href="https://serverfault.com/questions/48428/how-to-send-emails-and-avoid-them-being-classified-as-spam">https://serverfault.com/questions/48428/how-to-send-emails-and-avoid-them-being-classified-as-spam</a></p><p>Plus other things that you need to worry about that I probably failed to mention here. These are all good if you love to DIY but if you want a more convenient way to monitor cron jobs, an alternative and better way is to use a cron job monitoring tool like <a href="https://cronmonit.app/">CronMonit</a>.</p><p>Setting up a cron job to be monitored via CronMonit only takes less than 5 minutes. You just have to create a check using CronMonit’s dashboard and configure your cron job to ping the check once it is done running by sending an HTTP request to the given ping URL.</p><p>E.g,</p><p>If your cron job is:</p><p>* * * * * script.sh</p><p>..it will become:</p><p>* * * * * script.sh &amp;&amp; curl -fsS --retry 3 https://cronmonit.app/ping-check/91b5a171-6721-4657-b05e-35f5dde5dc0f &gt; /dev/null</p><p>Once your cron job pings the check for the first time, CronMonit will start monitoring your cron job. If ever your cron job fails (e.g, an error happens or the cron job doesn’t run at all), you’ll get notified via email.</p><p>And by using CronMonit, if cron is not running at all or if the server is down, you’ll still get notified that there’s a problem with your cron job!</p><p>You’ll also get a simple dashboard for viewing monitored cron jobs where you can easily see which jobs are up or down:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3gqr1L0WomEvnfPTZ-9kOg.png" /></figure><p>It is really useful especially if you have a lot of cron jobs. You’ll also be able to view logs of pings and status changes which provides some useful insights about your cron jobs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tt_Rwq_WfvNdZxy_U2KmYg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pcTk6jvtnJodrCb0hNInA.png" /></figure><p>Checks can be organized by projects too:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yyct9zSl4KEMA_8D1P59GQ.png" /></figure><p>Signup and start monitoring your cron jobs for free: <a href="https://cronmonit.app/">https://cronmonit.app</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e738bff96b0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>