98
htlr
7y

The real Russian roulette for server admins πŸ˜‚

Comments
  • 25
    Suisudo
  • 23
    I'd rather choose the gun. This one is too risky.
  • 5
    $RANDOM is so fucking shit for generating numbers.
  • 2
    I would rather gamble for CI/CD pipeline than the actual prod servers as cloud can solve the server problem for small-medium businesses anyway.
  • 8
    Meh, I keep everything compartmentalized, so this wouldn't do any actual damage. A few corrupt rows at worst.

    gco production && touch new_deploy && ga . && gc "new deploy" && gpo production:production

    Five minutes later it'd be up and running again.
  • 3
    @Ashkin I need to figure out what all those commands mean and how to get a setup like you have, but damn its awesome that that is possible!
  • 5
    @bashlord
    Haha most of them are shortened git commands:
    gco --- git checkout
    ga -- git add
    gpo -- git push origin
    Etc.

    I have my build server auto-pull from the qa and production branches when they change. If everything passes and builds nicely, it pushes the new build to my qa/production server(s) automatically and restarts them.

    Since the database is on another server, I don't lose any data if prod gets rimraf'd.
  • 4
    @Ashkin Haha that’s still a nice setup, be it less mysterious than I thought it was at first :)
  • 1
    IIRC the original SO answer has a note about macOS, saying the gun is fully loaded.
  • 0
    @bashlord zsh git plugin will give you a bunch of those useful git aliases.
  • 1
    @farkaskid I’m actually quite comfortable with bash (surprise!) and I like filling up my .bash_aliases file myself, gets my creativity going! :)
  • 0
    Check out
Add Comment