Fixing problems with rebuild app


#1

Hello! Yesterday installed this engine, but today, for the first time trying to install plugins, encountered difficulties: during the command SSH-terminal “./launcher rebuild app”, the following occurs:

What could be the problem? I following a hair’s breadth of these instructions: Install a Plugin.

Here is end of my file app.yml, if it can help (line number 90 noted “!! this” now):

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git (!! this)
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
		- git clone https://github.com/gnunicorn/discourse-plugin-pm-button.git
		- git clone https://github.com/angusmcleod/discourse-header-search.git
		- git clone https://github.com/kasperpeulen/discourse-mathjax.git
run:
  - exec: echo "Beginning of custom commands"
  - exec: echo "End of custom commands"

Plugins folder now is empty, how I looked.

Thank you! Maybe this problem I can avoid installing these plugins manually using the SSH-terminal, without edit app.yml?


(Andrew Waugh) #2

What did you edit app.yml with?

It shouldn’t have any tabs in it.

If you find vi too difficult to use try a different editor, nano is pretty simple.

to install it:

sudo apt-get install nano

then, to edit app.yml

sudo nano /var/discourse/containers/app.yml


(Tobias Eigen) #3

even indentation matters. the git clone lines should line up precisely with the ones above and it looks like the bottom three do not.

Actually, no - adding those lines to app.yml is how you install plugins. :slight_smile: It’s pretty straightforward and will work once you get the indentation issue sorted out.