Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ __pycache__/
*.log

dist/
build/
build/

gpt_code_ui/webapp/static
gpt_code_ui/webapp/templates
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ compile_frontend:
npm install && \
VITE_APP_VERSION=$$(grep -e "^\s*version='[^']*'" ../setup.py | cut -d "'" -f 2) npm run build && \
find ../gpt_code_ui/webapp/static -mindepth 1 ! -name '.gitignore' -delete && \
rsync -av dist/ ../gpt_code_ui/webapp/static
rsync -av dist/ ../gpt_code_ui/webapp/static && \
cd .. && \
python3 scripts/create_template.py

bundle_pypi:
rm -rf dist build && \
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,8 @@ gptcode
Please do and have a look at the [contributions guide](.github/CONTRIBUTING.md)! This should be a community initiative. I'll try my best to be responsive.


Thank you for your interest in this project!
Thank you for your interest in this project!

## run in subroutes

set ```APPLICATION_ROOT``` in ```.env``` file, and in proxy set host ```localhost:${WEB_PORT}${your APPLICATION_ROOT}```, just like any other flask app
3 changes: 3 additions & 0 deletions frontend/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# taobao npm registry mirror
registry = https://registry.npmmirror.com
legacy-peer-deps = true
Loading