Skip to content

teamcodeyard/heroculer

Repository files navigation

Moleculer logo


🚀 Deploy your Moleculer microservices to multiple Heroku apps.

NPM version


Install

$ npm install @codeyard/heroculer --save

Usage

Initialize remote repositories with your heroculer.yml config file

$ heroculer init -f heroculer.yml

heroculer.yml

version: "1.0"

services:
  - api:
      app_name: heroculer-demo-api
      env_file: demo.env
      environment:
        - SERVICES: api
        - SERVICEDIR: services
        - PORT: 80
        - TRANSPORTER: <TRANSPORTER_LINK>
      processes:
        - web: 1
  - products:
      app_name: heroculer-demo-products
      env_file: demo.env
      environment:
        - SERVICES: products
        - SERVICEDIR: services
        - PORT: 3000
        - TRANSPORTER: <TRANSPORTER_LINK>
      processes:
        - web: 0
        - worker: 1
  - greeter:
      app_name: heroculer-demo-greeter
      env_file: demo.env
      environment:
        - SERVICES: greeter
        - SERVICEDIR: services
        - PORT: 3000
        - TRANSPORTER: <TRANSPORTER_LINK>
      processes:
        - web: 0
        - worker: 1

Important notes


Use SERVICES environment variable to manage which microservice should run inside your Heroku application.


License

The project is available under the MIT license.

Contact

Copyright (c) 2016-2019 MoleculerJS

@moleculerjs @MoleculerJS

About

MoleculerJS deployment for Heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published