# Fixing problems with rebuild app

**URL:** https://meta.discourse.org/t/fixing-problems-with-rebuild-app/56589
**Category:** Support
**Created:** [January 30, 2017, 3:00pm UTC](https://meta.discourse.org/t/fixing-problems-with-rebuild-app/56589 "2017-01-30T15:00:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Goog](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Goog](https://meta.discourse.org/u/Goog)
#### Post date: [January 30, 2017, 3:00pm UTC](https://meta.discourse.org/t/fixing-problems-with-rebuild-app/56589/1 "2017-01-30T15:00:52Z")

</div>

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:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/4/f4abeb49a896ea009bed0403c3165a0fe0807918.png)

What could be the problem? I following a hair’s breadth of these instructions: [Install plugins on a self-hosted site](https://meta.discourse.org/t/install-a-plugin/19157).

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

```plaintext
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?

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [January 30, 2017, 3:11pm UTC](https://meta.discourse.org/t/fixing-problems-with-rebuild-app/56589/2 "2017-01-30T15:11:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [January 30, 2017, 4:30pm UTC](https://meta.discourse.org/t/fixing-problems-with-rebuild-app/56589/3 "2017-01-30T16:30:03Z")

</div>

> [@JagWaugh](#):
>
> It shouldn’t have any tabs in it.

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

> [@Goog](#):
>
> Maybe this problem I can avoid installing these plugins manually using the SSH-terminal, without edit app.yml?

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

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:45pm UTC](https://meta.discourse.org/t/fixing-problems-with-rebuild-app/56589/4 "2024-06-08T12:45:04Z")

</div>

This topic was automatically closed after 2685 days. New replies are no longer allowed.
