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

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", "heroku-redis"],
        )
      end
    end
  end
end

Install redis on heroku for sidekiq
Install redis on heroku for sidekiq
