4.4.3 • Published 8 months ago
@powrhub/mms v4.4.3
Operato MMS
- Operato : Solution family brand of hatiolab.com(http://www.hatiolab.com)
- MMS : Marketplace Management Service
prerequisites
- nodejs version 12
how to make & publish docker image
- release new version with updated source, and publish to npm
$ git pull # should sync with github before start
$ yarn install && yarn build
$ yarn release
? Select a new version (currently 3.0.0-beta.30) Custom Prerelease
? Enter a prerelease identifier (default: "beta", yielding 3.0.0-beta.31) # just enter
? Are you sure you want to publish these packages? (ynH) # enter 'y'- make docker image
$ yarn workspace @powrhub/mms-app run build:client # should build client before making docker-image
$ yarn workspace @powrhub/mms-app run docker- publish to docker-hub
$ docker login # login into docker-hub with hatiolab user with password (required only once)
$ docker push hatiolab/mms-app:latestinstall from docker
mms-app installation
- create a folder for the application and change directory to your folder.
the script will download a& install mms-app
# install script for mms-app curl -fsSL https://raw.githubusercontent.com/things-factory/things-factory/master/packages/mms-app/installer/install.sh | bash -srun 'start.sh' to start mms-app and 'stop.sh' to stop the running applicaton.
- on initial start, run 'migrate.sh' first to migrate database.
# data migration $ ./start.sh $ ./migrate.sh $ ./stop.sh # restart $ ./start.shmms-app upgrade
# upgrade
$ ./stop.sh
$ ./upgrade.sh
# restart
$ ./start.sh