From 61d6d17904741ee22cd4b0485d103c5104899be7 Mon Sep 17 00:00:00 2001 From: Aral Balkan Date: Thu, 15 Jun 2017 17:22:04 +0200 Subject: [PATCH] Update command to checkout latest release. The git tag command was incorrectly checking out release candidates instead of the latest release. Fixes #309 --- Running-Mastodon/Production-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Running-Mastodon/Production-guide.md b/Running-Mastodon/Production-guide.md index ba88e643..f99107c1 100644 --- a/Running-Mastodon/Production-guide.md +++ b/Running-Mastodon/Production-guide.md @@ -220,7 +220,7 @@ And enter the following commands: cd ~ git clone https://github.com/tootsuite/mastodon.git live cd live - git checkout $(git tag | tail -n 1) + git checkout $(git tag -l | sort -V | tail -n 1) Then you can proceed to install project dependencies: @@ -340,7 +340,7 @@ If you want a stable release for production use, you should use tagged releases. ```sh cd ~mastodon/live/ git fetch - git checkout $(git tag | tail -n 1) + git checkout $(git tag -l | sort -V | tail -n 1) ``` As part of your deploy, you may need to run: