Class: Suspenders::Production::ManifestGenerator

Inherits:
Generators::Base
  • Object
show all
Defined in:
lib/suspenders/generators/production/manifest_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root

Methods included from Actions

#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file

Instance Method Details

#render_manifestObject



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/suspenders/generators/production/manifest_generator.rb', line 6

def render_manifest
  expand_json(
    "app.json",
    name: app_name.dasherize,
    scripts: {},
    env: {
      APPLICATION_HOST: { required: true },
      EMAIL_RECIPIENTS: { required: true },
      HEROKU_APP_NAME: { required: true },
      HEROKU_PARENT_APP_NAME: { required: true },
      RACK_ENV: { required: true },
      SECRET_KEY_BASE: { generator: "secret" },
    },
    addons: ["heroku-postgresql"],
  )
end