Fixing problems with rebuild app

AI-generated summary

The discussion is about fixing problems with rebuilding an app. Goog is having trouble installing plugins using the command ./launcher rebuild app and suspects an issue with their app.yml file. JagWaugh suggests that the problem might be due to tabs in the app.yml file and recommends using a different editor like nano. tobiaseigen points out that even indentation matters in the app.yml file and that the git clone lines should line up precisely. He also confirms that adding lines to app.yml is the correct way to install plugins.

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 plugins on a self-hosted site.

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?

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

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.