Help deploying older versions of Discourse

Latest summary: If you simply want to deploy the latest Long-Term Support (LTS) version, you only need to modify containers/app.yml.

# Add the following configuration at the end
params:
  version: esr

Then, rebuild the container. If you encounter any errors during the build, it is most likely a network issue, especially for users in China.

If you encounter an Oops error, please refer to this post: Oops error - Support - Discourse Meta

We use this command inside an if [[ ]] statement to check whether the supplied ref is the same as the current branch. For tags and non-latest branches, it is expected to fail, so then we hit the ‘else’ branch of the if statement.

That will run a git checkout ..., which does work with tags.

Great, glad to hear you got it working!

2 Likes

That’s going to cause you problems when launcher tries to pull in the latest version.

You’ll want to git stash or git checkout templates/web.template.yml

1 Like