mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
feat: Add start-ai, build-ai, and force-build-ai scripts for AI services
This commit adds three new scripts, start-ai, build-ai, and force-build-ai, to the package.json file. These scripts are used to start, build, and force-build the AI services respectively. They are configured to export environment variables, run the prerun script, and execute the necessary docker compose commands with the specified configuration file. This addition enhances the development workflow by providing convenient commands for managing the AI services.
This commit is contained in:
parent
3c2af1dc38
commit
e4ade513ce
@ -42,6 +42,9 @@
|
||||
"fix": "npm run fix-lint",
|
||||
"status-check": "bash ./Tests/Scripts/status-check.sh $npm_config_services",
|
||||
"start": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -d $npm_config_services && npm run status-check",
|
||||
"start-ai": "export $(grep -v '^#' config.env | xargs) && npm run prerun && docker compose -f docker-compose.ai.yml up --remove-orphans -d $npm_config_services",
|
||||
"build-ai": "export $(grep -v '^#' config.env | xargs) && npm run prerun && docker compose -f docker-compose.ai.yml build $npm_config_services",
|
||||
"force-build-ai": "export $(grep -v '^#' config.env | xargs) && npm run prerun && docker compose -f docker-compose.ai.yml build --no-cache $npm_config_services",
|
||||
"ps": "export $(grep -v '^#' config.env | xargs) && docker compose ps",
|
||||
"save-logs": "export $(grep -v '^#' config.env | xargs) && docker compose logs --tail=100000 $npm_config_services > logs.txt",
|
||||
"logs": "export $(grep -v '^#' config.env | xargs) && docker compose logs --tail=100 -f $npm_config_services",
|
||||
|
Loading…
Reference in New Issue
Block a user