Created
April 17, 2015 20:29
-
-
Save scossar/035c8a6068604bd420fc to your computer and use it in GitHub Desktop.
hooks for Discourse app.yml to load a custom Discourse repo into the docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hooks: | |
after_code: | |
- exec: | |
cd: $home/plugins | |
cmd: | |
- mkdir -p plugins | |
- git clone https://github.com/discourse/docker_manager.git | |
- exec: | |
cd: $home | |
cmd: | |
- 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-custom | |
- git fetch | |
- git remote set-branches --add origin auto-rtl | |
- git branch -u origin/auto-rtl | |
- git reset --hard origin/auto-rtl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace 'hooks' section of
/var/discourse/containers/app.yml
with this to load a custom repo.Change repo name
https://github.com/scossar/discourse-custom
and branch nameauto-rtl
to load your own repo. This repo will change soon.Remember - no tabs in yaml - wrong indentation will break it!