5
12 Comments

My website crashed for 12 hours 😭

Yesterday I made a code commit to lonely.dev. But it caused a severe crash. I didn't even notice this issue until I woke up this morning, and I saw some nice IHs replied me in my post. Thank you @skflowne and @felix12777.

I have to admit it's really my carelessness. I may lost some traffic after I made the following post yesterday:
Rosie posted her 1st video on Lonely Dev πŸ€—

But, how can I prevent such case in future? Is there any proactive approach I can do to monitor any crash?

on April 23, 2020
  1. 4

    ton of things, outside of the obvious of just testing your shit after you deploy it (you mentioned it being carelessness on your end, and you're definitely correct).

    a few things I do, and you may or may not be doing some or all of this already:

    1. use a CI/CD pipeline and don't do manual deploys / allow yourself easy access to get code to production outside of the automation
    2. automatically lint your code as part of your CI/CD pipeline. depending on the language and styleguide in place, this can shake out an epic amount of problems (typescript + airbnb styleguide being my stack du jour)
    3. write tests to help ensure things are as they should be, also running in your CI/CD
    4. add some sort of monitoring to ensure your app is at the very least serving a 2xx code
    5. add something like sentry or new relic to do more advanced monitoring for issues.
    1. 3

      Thanks Josh!!!

      I have to be honest. It's my first time to hear CI/CD. But I will definitely check it out.

      I really need to have monitoring service set up. As we all being IndieHackers, we do everything by ourselves, from website building, deploying, marketing, engaging with our members. I really need a second eye to help me catch some early bug instead of waiting my users to tell me.

      I cannot imagine if nobody told me, man, that would be a disaster.

      1. 3

        man, your life just changed in a big way... automation in terms of testing a deployment really opens a ton of doors!!

        and honestly, NOBODY noticing is probably the biggest disaster, because it would be mean that either nobody is using your stuff OR WORSE, nobody cared to bring it up.

        shit happens though, learn from it, move onward and upward :)

        1. 3

          Totally! I haven't really put too much effort on automation, unit test, monitoring. But I should really start doing them now, because I think I will get benefits in the long run.

          Btw, I just set up Sentry. It has friendly free plan for developers. I explicitly triggered a crash in my development environment, and I can immediately get an email notification. It such a strong tool to have. Thanks for suggesting this, really appreciate it πŸ‘

          1. 2

            no problem at all, happy to help!

  2. 3

    Use https://uptimerobot.com/

    It's free and very simple to setup. It will take you 5 minutes and it's saved my butt several times

    1. 1

      Thank you! It's another tool to haveπŸ€—

  3. 2

    Hi @Damon,

    Downtime is something nobody really wants to have. :/

    I'd be happy to grant you free access to the API monitoring service I'm developing. Hit me up if you're interested.

    https://www.indiehackers.com/post/monitoring-your-api-for-free-4a0f12740c

  4. 2

    should really push to stage env and if it works deploy to production

  5. 2

    Hey, @damon

    I'm glad you resolved it! Better late than never 😁Kudos to the guys πŸ™Œβœ¨

    I've prepared this one for you:

    πŸ“’ https://hostedstatus.page/lonely.dev

    You can monitor your website for any response time issues and πŸ’₯downtime πŸ’₯. It's not like the Sentry, but it works just like any other monitor - you get an email when the sh1t goes south 😁

    Anyway, its main purpose are incident reports. It's still in private beta, but you can enjoy the downtime detection for now. You can ping me at dragstor+ih@gmail.com so I can set up your account, should you need it 😊

    Cheers!
    ~N

    1. 1

      Thank you Nikola for setting up for lonely.dev. For now, I think sentry is enough. But your HSP looks great, keep it up!

      1. 2

        My pleasure πŸ™Œ Glad you like it! It's there, should you ever need it :) Yeah, Sentry rocks for sure!