Rebuild failure - skipping "after_assets_precompile" section of app.yml

@supermathie - you are terrific with incredible eyesight. You were able to see that the code was not indented by two spaces. And only from a single snippet versus the more extensive section. Thank you.

I added the two spaces, and that solved the problem.

I had previously run app.yml through a yml checker. The testing tool told me the file was structurally sound. It could not tell me it was functionally wrong.

The correct code snippet should be:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-adplugin
          - git clone https://github.com/discourse/discourse-affiliate
          - git clone https://github.com/discourse/discourse-subscriptions
          - git clone https://github.com/discourse/discourse-yearly-review
          - git clone https://github.com/discourse/discourse-whos-online
          - git clone https://github.com/discourse/discourse-data-explorer
  # set internal files for cdn
  after_assets_precompile:
    - exec:
        cd: $home
        cmd:
          - echo "Beginning of precompile commands"
          - sudo -E -u discourse bundle exec rake s3:upload_assets
          - sudo -E -u discourse bundle exec rake s3:expire_missing_assets

To document the app.yml file. The only top-level keys are:

  • templates:
  • params:
  • env:
  • volumes:
  • hooks:
  • run:

Everything else should be indented.

The simplest of errors can be the most frustrating. Six hours of my life were lost for two spaces.

My kingdom for two spaces.