mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
refactor: Update Copilot configuration for local development
This commit is contained in:
parent
e4bf81fcc1
commit
f53b314b59
47
.bash_profile
Normal file
47
.bash_profile
Normal file
@ -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"
|
||||||
|
|
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
@ -147,6 +147,20 @@
|
|||||||
"restart": true,
|
"restart": true,
|
||||||
"autoAttachChildProcesses": 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": [
|
||||||
|
"<node_internals>/**"
|
||||||
|
],
|
||||||
|
"type": "node",
|
||||||
|
"restart": true,
|
||||||
|
"autoAttachChildProcesses": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"address": "127.0.0.1",
|
"address": "127.0.0.1",
|
||||||
"localRoot": "${workspaceFolder}/Workers",
|
"localRoot": "${workspaceFolder}/Workers",
|
||||||
|
@ -2,6 +2,7 @@ services:
|
|||||||
|
|
||||||
copilot:
|
copilot:
|
||||||
volumes:
|
volumes:
|
||||||
|
- ${COPILOT_REPOSITORY_LOCAL_PATH}:/repository
|
||||||
- ./Copilot:/usr/src/app
|
- ./Copilot:/usr/src/app
|
||||||
# Use node modules of the container and not host system.
|
# 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
|
# https://stackoverflow.com/questions/29181032/add-a-volume-to-docker-but-exclude-a-sub-folder
|
Loading…
Reference in New Issue
Block a user