forked from danny-avila/LibreChat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
245 changed files
with
7,606 additions
and
4,190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Update Test Server | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Docker Dev Images Build"] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
if: | | ||
github.repository == 'danny-avila/LibreChat' && | ||
(github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success') | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install SSH Key | ||
uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{ secrets.DO_SSH_PRIVATE_KEY }} | ||
known_hosts: ${{ secrets.DO_KNOWN_HOSTS }} | ||
|
||
- name: Run update script on DigitalOcean Droplet | ||
env: | ||
DO_HOST: ${{ secrets.DO_HOST }} | ||
DO_USER: ${{ secrets.DO_USER }} | ||
run: | | ||
ssh -o StrictHostKeyChecking=no ${DO_USER}@${DO_HOST} << EOF | ||
sudo -i -u danny bash << EEOF | ||
cd ~/LibreChat && \ | ||
git fetch origin main && \ | ||
npm run update:deployed && \ | ||
git checkout do-deploy && \ | ||
git rebase main && \ | ||
npm run start:deployed && \ | ||
echo "Update completed. Application should be running now." | ||
EEOF | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "launch", | ||
"name": "Launch LibreChat (debug)", | ||
"skipFiles": ["<node_internals>/**"], | ||
"program": "${workspaceFolder}/api/server/index.js", | ||
"env": { | ||
"NODE_ENV": "production" | ||
}, | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# v0.7.3 | ||
# v0.7.4 | ||
|
||
# Base node image | ||
FROM node:20-alpine AS node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# v0.7.3 | ||
# v0.7.4 | ||
|
||
# Build API, Client and Data Provider | ||
FROM node:20-alpine AS base | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.