Can't change repo in discourse docker

In the past, I’ve done it by editing app.yml like this:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/scossar/localized-categories
          - git clone https://github.com/scossar/dictionary-card-onebox
    - exec:
        cd: $home
        cmd:
         # changes start here
          - git remote remove origin
          - git config --remove-section branch.master
          - git config --remove-section branch.tests-passed
          - git remote add origin https://github.com/scossar/discourse-dev
          - git fetch
          - git remote set-branches --add origin anonymous-locale
          - git branch -u origin/anonymous-locale
          - git reset --hard origin/anonymous-locale

If you are only needing a plugin outlet added to Discourse you could try making a pull request to Discourse for the addition.

3 Likes