diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000000..25800b69dc --- /dev/null +++ b/.bash_profile @@ -0,0 +1,47 @@ +# These are aliases that will make your life simple when you're building OneUptime + +# Make directory and change directory at the same time. +mkcdir () +{ + mkdir -p -- "$1" && + cd -P -- "$1" +} + +alias g="git" +alias k="kubectl" + +# Docker aliases +alias d="docker" +alias dc="docker compose" +alias dcu="docker compose up" +alias dcd="docker compose down" + +# Node aliases +alias n="npm" + +# Rust aliases +alias c="cargo" +alias cb="cargo build" +alias cr="cargo run" + +# OneUptime Specific Aliases +# -------------------------- + +alias nrd="npm run dev" +alias nrl="npm run logs" +alias nrb="npm run build" +alias nrfb="npm run foce-build" +alias nrps="npm run ps-dev" + +# OneUptime Copilot +alias nrfbc="npm run force-build-copilot" +alias nrdc="npm run dev-copilot" +alias nrlc="npm run logs-copilot" +alias nrbc="npm run build-copilot" + +# OneUptime LLM Server +alias nrfbl="npm run force-build-llm" +alias nrdl="npm run dev-llm" +alias nrll="npm run logs-llm" +alias nrbl="npm run build-llm" + diff --git a/.vscode/launch.json b/.vscode/launch.json index 82b4f1e9f2..8d0b35b58d 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -147,6 +147,20 @@ "restart": true, "autoAttachChildProcesses": true }, + { + "address": "127.0.0.1", + "localRoot": "${workspaceFolder}/Realtime", + "name": "Copilot: Debug with Docker", + "port": 9985, + "remoteRoot": "/usr/src/app", + "request": "attach", + "skipFiles": [ + "/**" + ], + "type": "node", + "restart": true, + "autoAttachChildProcesses": true + }, { "address": "127.0.0.1", "localRoot": "${workspaceFolder}/Workers", diff --git a/docker-compose.copilot.yaml b/docker-compose.copilot.yml similarity index 93% rename from docker-compose.copilot.yaml rename to docker-compose.copilot.yml index 634d8f7867..d1ffc1cc99 100644 --- a/docker-compose.copilot.yaml +++ b/docker-compose.copilot.yml @@ -2,6 +2,7 @@ services: copilot: volumes: + - ${COPILOT_REPOSITORY_LOCAL_PATH}:/repository - ./Copilot:/usr/src/app # Use node modules of the container and not host system. # https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder