dev-2-ops
v0.2.46
Published
Development to Operations
Downloads
20
Maintainers
Readme
Dev-2-Ops Command line tool
I. Development
- Command: dev
dev
- Dev-2-Ops Command line tool introduction
- Command list
- Command: dev git
dev git ignore <path_pattern>
- Git ignore path pattern
3. Command: dev init
dev init
- Init module workspace
- Command: dev pull
dev pull <git_url:branch>
- Pull workspace from git
- 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
- Command: dev start
dev start
- Start workspace
- Run entrypoint.sh
- Command: dev npm uninstall
dev npm uninstall
- Remove all node_modules
- 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
- Command: dev push
dev push <comment>
- Push to git
- Equivalent to:
git add .
git commit -m <comment>
git push
II. Operations
- Command: ops pull
ops pull <git_url:branch>
- 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
- Command: ops stop
ops stop
- Stop docker compose
- Command: ops push
ops push <comment>
- Push change to git
- Equivalent to git commands:
git add .
git commit -m <comment>
git push