dev-2-ops
TypeScript icon, indicating that this package has built-in type declarations

0.2.46 • Public • Published

Dev-2-Ops Command line tool

I. Development

  1. Command: dev
dev
  • Dev-2-Ops Command line tool introduction
  • Command list
  1. Command: dev git
dev git ignore <path_pattern>
  • Git ignore path pattern

3. Command: dev init

dev init
  • Init module workspace
  1. Command: dev pull
dev pull <git_url:branch>
  • Pull workspace from git
  1. Command: dev push
dev push <comment>
  • Push workspace to git
  • Equivalent to git commands:
  git add .
  git commit -m <comment>
  git push

6. Command: dev status

dev status
  • Validate workspace folder
  • Check workspace status
  1. Command: dev start
dev start
  • Start workspace
  • Run entrypoint.sh
  1. Command: dev npm uninstall
  dev npm uninstall
  • Remove all node_modules
  1. Command: dev docker build
dev docker build [--force]
  • Build .docker folder
  • Copy files: redis.conf, nginx.conf, entrypoint.sh, docker-compose.yml, .env to folder .docker
  1. Command: dev push
dev push <comment>
  • Push to git
  • Equivalent to:
  git add .
  git commit -m <comment>
  git push

II. Operations

  1. Command: ops pull
ops pull <git_url:branch>
  1. Command: ops start
ops start [--auto_update]
  • Run entrypoint.sh file
  • Start docker: docker compose up --build -d
  • --auto_update: Whenever git change, the docker will automatically restart
  1. Command: ops stop
ops stop
  • Stop docker compose
  1. Command: ops push
ops push <comment>
  • Push change to git
  • Equivalent to git commands:
  git add .
  git commit -m <comment>
  git push

Package Sidebar

Install

npm i dev-2-ops

Weekly Downloads

0

Version

0.2.46

License

ISC

Unpacked Size

56.2 kB

Total Files

54

Last publish

Collaborators

  • mrbaobao