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
|
.env
|
||||||
|
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
45
README.md
45
README.md
|
|
@ -147,53 +147,70 @@ Ansible remains the remote deployment/configuration mechanism.
|
||||||
|
|
||||||
# Acupedia CLI
|
# Acupedia CLI
|
||||||
|
|
||||||
|
```bash
|
||||||
acupedia-ops bootstrap all \
|
acupedia-ops bootstrap all \
|
||||||
--content-config ./config.json \
|
--content-config ./config.json \
|
||||||
--content-modules-root ./modules-data \
|
--content-modules-root ../acupedia-content \
|
||||||
--content-module-code M0001 \
|
--content-module-code M0001 \
|
||||||
--media-manifest ./media.json \
|
--media-manifest ./media.json \
|
||||||
--media-media-root ./modules-data/M0001-Acupuncture Points
|
--media-media-root ../acupedia-content/M0001-Acupuncture Points
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
acupedia-ops bootstrap media \
|
acupedia-ops bootstrap media \
|
||||||
--manifest "./modules-data/M0001-Acupuncture Points/media.json" \
|
--manifest "../acupedia-content/M0001-Acupuncture Points/media.json" \
|
||||||
--media-root "./modules-data/M0001-Acupuncture Points" \
|
--media-root "../acupedia-content/M0001-Acupuncture Points" \
|
||||||
--validate-only
|
--validate-only
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
acupedia-ops bootstrap media \
|
acupedia-ops bootstrap media \
|
||||||
--manifest "./modules-data/M0001-Acupuncture Points/media.json" \
|
--manifest "../acupedia-content/M0001-Acupuncture Points/media.json" \
|
||||||
--media-root "./modules-data/M0001-Acupuncture Points"
|
--media-root "../acupedia-content/M0001-Acupuncture Points"
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
acupedia-ops bootstrap content \
|
acupedia-ops bootstrap content \
|
||||||
--config ./modules-data/config.json \
|
--config ../acupedia-content/config.json \
|
||||||
--modules-root ./modules-data \
|
--modules-root ../acupedia-content \
|
||||||
--module-code M0001 \
|
--module-code M0001 \
|
||||||
--publish-content
|
--publish-content
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
acupedia-ops bootstrap content \
|
acupedia-ops bootstrap content \
|
||||||
--config ./modules-data/config.json \
|
--config ../acupedia-content/config.json \
|
||||||
--modules-root ./modules-data \
|
--modules-root ../acupedia-content \
|
||||||
--module-code M0001 \
|
--module-code M0001 \
|
||||||
--seed-search-facets-only
|
--seed-search-facets-only
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
acupedia-ops bootstrap content \
|
acupedia-ops bootstrap content \
|
||||||
--config ./modules-data/config.json \
|
--config ../acupedia-content/config.json \
|
||||||
--modules-root ./modules-data \
|
--modules-root ../acupedia-content \
|
||||||
--module-code M0001 \
|
--module-code M0001 \
|
||||||
--template-code M0001_CT0003 \
|
--template-code M0001_CT0003 \
|
||||||
--content-code LU-1 \
|
--content-code LU-1 \
|
||||||
--publish-content
|
--publish-content
|
||||||
|
```
|
||||||
|
|
||||||
aacupedia-ops bootstrap commerce --plans ./modules-data/plans.json
|
```
|
||||||
|
acupedia-ops bootstrap commerce --plans ../acupedia-content/plans.json
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
acupedia-ops reset \
|
acupedia-ops reset \
|
||||||
--scope module \
|
--scope module \
|
||||||
--module-code M0002 \
|
--module-code M0002 \
|
||||||
--execute
|
--execute
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
acupedia-access grant-plan \
|
acupedia-access grant-plan \
|
||||||
--email av.salunke@gmail.com \
|
--email av.salunke@gmail.com \
|
||||||
--plan-code POINTS_ACU
|
--plan-code POINTS_ACU
|
||||||
|
```
|
||||||
|
|
||||||
Grant a plan and all modules mapped through `commerce.access_plan_modules`:
|
Grant a plan and all modules mapped through `commerce.access_plan_modules`:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- acupedia-postgres-data:/var/lib/postgresql/data
|
- acupedia-postgres-data:/var/lib/postgresql/data
|
||||||
healthcheck:
|
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
|
interval: 5s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 20
|
retries: 20
|
||||||
|
|
|
||||||
|
|
@ -42,15 +42,15 @@ services:
|
||||||
- acupedia-minio-data:/data
|
- acupedia-minio-data:/data
|
||||||
networks:
|
networks:
|
||||||
- acupedia-net
|
- acupedia-net
|
||||||
mailhog:
|
# mailhog:
|
||||||
image: mailhog/mailhog:latest
|
# image: mailhog/mailhog:latest
|
||||||
container_name: panacea-mailhog
|
# container_name: acupedia-mailhog
|
||||||
restart: unless-stopped
|
# restart: unless-stopped
|
||||||
ports:
|
# ports:
|
||||||
- "1025:1025" # SMTP port
|
# - "1025:1025" # SMTP port
|
||||||
- "8025:8025" # Web UI port
|
# - "8025:8025" # Web UI port
|
||||||
networks:
|
# networks:
|
||||||
- acupedia-net
|
# - acupedia-net
|
||||||
redisinsight:
|
redisinsight:
|
||||||
image: redis/redisinsight:latest
|
image: redis/redisinsight:latest
|
||||||
container_name: redis-insight
|
container_name: redis-insight
|
||||||
|
|
@ -62,13 +62,13 @@ services:
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
|
|
||||||
acupedia-content:
|
# acupedia-content:
|
||||||
image: gcr.io/google-containers/pause:latest
|
# image: gcr.io/google-containers/pause:latest
|
||||||
container_name: acupedia-content
|
# container_name: acupedia-content
|
||||||
volumes:
|
# volumes:
|
||||||
- acupedia-content-data:/app/data
|
# - acupedia-content-data:/app/data
|
||||||
networks:
|
# networks:
|
||||||
- acupedia-net
|
# - acupedia-net
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
acupedia-postgres-data:
|
acupedia-postgres-data:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue