Updated cli cmd
This commit is contained in:
parent
a6d78f19ff
commit
8a8b8e86f1
|
|
@ -0,0 +1 @@
|
|||
ACUPEDIA_BOOTSTRAP_ADMIN_PASSWORD=Cspl@1234
|
||||
|
|
@ -13,3 +13,6 @@ tmp/
|
|||
.env
|
||||
|
||||
*.egg-info/
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
45
README.md
45
README.md
|
|
@ -147,53 +147,70 @@ Ansible remains the remote deployment/configuration mechanism.
|
|||
|
||||
# Acupedia CLI
|
||||
|
||||
```bash
|
||||
acupedia-ops bootstrap all \
|
||||
--content-config ./config.json \
|
||||
--content-modules-root ./modules-data \
|
||||
--content-modules-root ../acupedia-content \
|
||||
--content-module-code M0001 \
|
||||
--media-manifest ./media.json \
|
||||
--media-media-root ./modules-data/M0001-Acupuncture Points
|
||||
--media-media-root ../acupedia-content/M0001-Acupuncture Points
|
||||
```
|
||||
|
||||
```
|
||||
acupedia-ops bootstrap media \
|
||||
--manifest "./modules-data/M0001-Acupuncture Points/media.json" \
|
||||
--media-root "./modules-data/M0001-Acupuncture Points" \
|
||||
--manifest "../acupedia-content/M0001-Acupuncture Points/media.json" \
|
||||
--media-root "../acupedia-content/M0001-Acupuncture Points" \
|
||||
--validate-only
|
||||
```
|
||||
|
||||
```
|
||||
acupedia-ops bootstrap media \
|
||||
--manifest "./modules-data/M0001-Acupuncture Points/media.json" \
|
||||
--media-root "./modules-data/M0001-Acupuncture Points"
|
||||
--manifest "../acupedia-content/M0001-Acupuncture Points/media.json" \
|
||||
--media-root "../acupedia-content/M0001-Acupuncture Points"
|
||||
```
|
||||
|
||||
```
|
||||
acupedia-ops bootstrap content \
|
||||
--config ./modules-data/config.json \
|
||||
--modules-root ./modules-data \
|
||||
--config ../acupedia-content/config.json \
|
||||
--modules-root ../acupedia-content \
|
||||
--module-code M0001 \
|
||||
--publish-content
|
||||
```
|
||||
|
||||
```
|
||||
acupedia-ops bootstrap content \
|
||||
--config ./modules-data/config.json \
|
||||
--modules-root ./modules-data \
|
||||
--config ../acupedia-content/config.json \
|
||||
--modules-root ../acupedia-content \
|
||||
--module-code M0001 \
|
||||
--seed-search-facets-only
|
||||
```
|
||||
|
||||
```
|
||||
acupedia-ops bootstrap content \
|
||||
--config ./modules-data/config.json \
|
||||
--modules-root ./modules-data \
|
||||
--config ../acupedia-content/config.json \
|
||||
--modules-root ../acupedia-content \
|
||||
--module-code M0001 \
|
||||
--template-code M0001_CT0003 \
|
||||
--content-code LU-1 \
|
||||
--publish-content
|
||||
```
|
||||
|
||||
aacupedia-ops bootstrap commerce --plans ./modules-data/plans.json
|
||||
```
|
||||
acupedia-ops bootstrap commerce --plans ../acupedia-content/plans.json
|
||||
```
|
||||
|
||||
```bash
|
||||
acupedia-ops reset \
|
||||
--scope module \
|
||||
--module-code M0002 \
|
||||
--execute
|
||||
```
|
||||
|
||||
```bash
|
||||
acupedia-access grant-plan \
|
||||
--email av.salunke@gmail.com \
|
||||
--plan-code POINTS_ACU
|
||||
|
||||
```
|
||||
|
||||
Grant a plan and all modules mapped through `commerce.access_plan_modules`:
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ services:
|
|||
volumes:
|
||||
- acupedia-postgres-data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-acupedia} -d ${POSTGRES_DB:-acupedia_db}"]
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-db_admin} -d ${POSTGRES_DB:-acupedia_db}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 20
|
||||
|
|
|
|||
|
|
@ -42,15 +42,15 @@ services:
|
|||
- acupedia-minio-data:/data
|
||||
networks:
|
||||
- acupedia-net
|
||||
mailhog:
|
||||
image: mailhog/mailhog:latest
|
||||
container_name: panacea-mailhog
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "1025:1025" # SMTP port
|
||||
- "8025:8025" # Web UI port
|
||||
networks:
|
||||
- acupedia-net
|
||||
# mailhog:
|
||||
# image: mailhog/mailhog:latest
|
||||
# container_name: acupedia-mailhog
|
||||
# restart: unless-stopped
|
||||
# ports:
|
||||
# - "1025:1025" # SMTP port
|
||||
# - "8025:8025" # Web UI port
|
||||
# networks:
|
||||
# - acupedia-net
|
||||
redisinsight:
|
||||
image: redis/redisinsight:latest
|
||||
container_name: redis-insight
|
||||
|
|
@ -62,13 +62,13 @@ services:
|
|||
depends_on:
|
||||
- redis
|
||||
|
||||
acupedia-content:
|
||||
image: gcr.io/google-containers/pause:latest
|
||||
container_name: acupedia-content
|
||||
volumes:
|
||||
- acupedia-content-data:/app/data
|
||||
networks:
|
||||
- acupedia-net
|
||||
# acupedia-content:
|
||||
# image: gcr.io/google-containers/pause:latest
|
||||
# container_name: acupedia-content
|
||||
# volumes:
|
||||
# - acupedia-content-data:/app/data
|
||||
# networks:
|
||||
# - acupedia-net
|
||||
|
||||
volumes:
|
||||
acupedia-postgres-data:
|
||||
|
|
|
|||
Loading…
Reference in New Issue