Sha256: b51c6676dc3a62e33854b6d5abf95763342ac2800e6b5e64dd0f02ca6021e015

Contents?: true

Size: 681 Bytes

Versions: 3

Compression:

Stored size: 681 Bytes

Contents

require_relative "../base"

module Suspenders
  module Production
    class ManifestGenerator < Generators::Base
      def render_manifest
        expand_json(
          "app.json",
          name: app_name.dasherize,
          scripts: {},
          env: {
            APPLICATION_HOST: {required: true},
            AUTO_MIGRATE_DB: {value: 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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
suspenders-1.56.1 lib/suspenders/generators/production/manifest_generator.rb
suspenders-1.55.1 lib/suspenders/generators/production/manifest_generator.rb
suspenders-1.55.0 lib/suspenders/generators/production/manifest_generator.rb