-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/chenqi99/openai' into 'master'
Feature/chenqi99/openai See merge request leyanapi/leyanapi-backend!404
- Loading branch information
Showing
22 changed files
with
260 additions
and
140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: nancal site deploy | ||
|
||
on: | ||
workflow_dispatch | ||
# pull_request: | ||
# branches: [ "main" ] | ||
# push: | ||
# branches: [ "main" ] | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: nancal | ||
defaults: | ||
run: | ||
working-directory: /home/nancal/rd/project/deeptest | ||
steps: | ||
- name: checkout backend codes | ||
run: git pull | ||
|
||
- name: checkout frontend codes | ||
run: git pull | ||
working-directory: /home/nancal/rd/project/deeptest-ui | ||
|
||
- name: make server | ||
run: ENV=dp make compile_server_linux | ||
|
||
- name: make agent | ||
run: ENV=dp make compile_agent_linux | ||
|
||
- name: make ui | ||
run: make compile_ui_nancal | ||
|
||
- name: copy files | ||
run: | | ||
mkdir -p /home/nancal/rd/server | ||
cp -f bin/linux/deeptest-server /home/nancal/rd/server/ | ||
cp -f client/bin/linux/deeptest-agent /home/nancal/rd/server/ | ||
rm -rf /home/nancal/rd/server/deeptest-ui | ||
cp -fr client/ui /home/nancal/rd/server/deeptest-ui | ||
- name: start service | ||
run: | | ||
ps -ef | grep 'deeptest-' | grep -v grep | awk '{print $2}' | xargs --no-run-if-empty kill -9 | ||
cd /home/nancal/rd/server | ||
RUNNER_TRACKING_ID="" && nohup ./deeptest-server > server.log 2>&1 & | ||
RUNNER_TRACKING_ID="" && nohup ./deeptest-agent > agent.log 2>&1 & |
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
Submodule backend-config
updated
from e39b7c to 1ea412
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 |
---|---|---|
|
@@ -17,27 +17,26 @@ | |
"lint": "echo \"No linting configured\"" | ||
}, | ||
"keywords": [], | ||
"author": { | ||
"name": "Aaron Chen", | ||
"email": "[email protected]" | ||
}, | ||
"author": "Aaron Chen", | ||
"license": "GPL3", | ||
"config": { | ||
"forge": "./forge.config.js" | ||
}, | ||
"devDependencies": { | ||
"@electron-forge/cli": "^6.4.1", | ||
"@electron-forge/maker-deb": "^6.4.1", | ||
"@electron-forge/maker-rpm": "^6.4.1", | ||
"@electron-forge/maker-squirrel": "^6.4.1", | ||
"@electron-forge/maker-zip": "^6.4.1", | ||
"@electron-forge/plugin-auto-unpack-natives": "^6.4.1", | ||
"@electron-forge/plugin-webpack": "^6.4.1", | ||
"electron": "30.0.9", | ||
"electron-packager": "17.1.2", | ||
|
||
"@electron-forge/cli": "7.4.0", | ||
"@electron-forge/maker-deb": "7.4.0", | ||
"@electron-forge/maker-rpm": "7.4.0", | ||
"@electron-forge/maker-squirrel": "7.4.0", | ||
"@electron-forge/maker-zip": "7.4.0", | ||
"@electron-forge/plugin-auto-unpack-natives": "7.4.0", | ||
"@electron-forge/plugin-webpack": "7.4.0", | ||
|
||
"@timfish/forge-externals-plugin": "^0.2.0", | ||
"@vercel/webpack-asset-relocator-loader": "1.7.3", | ||
"css-loader": "^6.5.1", | ||
"electron": "26.1.0", | ||
"electron-packager": "15.4.0", | ||
"node-loader": "^2.0.0", | ||
"style-loader": "^3.3.1" | ||
}, | ||
|
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.