Skip to content

Commit

Permalink
chore: add api docs to electron (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Mar 25, 2024
1 parent 0ff22e4 commit 50f819f
Show file tree
Hide file tree
Showing 11 changed files with 4,759 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ COPY --from=builder /app/web ./web/
COPY --from=builder /app/models ./models/

RUN yarn workspace @janhq/uikit install && yarn workspace @janhq/uikit build
RUN yarn workspace jan-web install
RUN yarn workspace @janhq/web install

RUN npm install -g serve@latest

Expand All @@ -55,7 +55,7 @@ ENV JAN_API_PORT 1337

ENV API_BASE_URL http://localhost:1337

CMD ["sh", "-c", "export NODE_ENV=production && yarn workspace jan-web build && cd web && npx serve out & cd server && node build/main.js"]
CMD ["sh", "-c", "export NODE_ENV=production && yarn workspace @janhq/web build && cd web && npx serve out & cd server && node build/main.js"]

# docker build -t jan .
# docker run -p 1337:1337 -p 3000:3000 -p 3928:3928 jan
4 changes: 2 additions & 2 deletions Dockerfile.gpu
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ COPY --from=builder /app/web ./web/
COPY --from=builder /app/models ./models/

RUN yarn workspace @janhq/uikit install && yarn workspace @janhq/uikit build
RUN yarn workspace jan-web install
RUN yarn workspace @janhq/web install

RUN npm install -g serve@latest

Expand All @@ -81,7 +81,7 @@ ENV JAN_API_PORT 1337

ENV API_BASE_URL http://localhost:1337

CMD ["sh", "-c", "export NODE_ENV=production && yarn workspace jan-web build && cd web && npx serve out & cd server && node build/main.js"]
CMD ["sh", "-c", "export NODE_ENV=production && yarn workspace @janhq/web build && cd web && npx serve out & cd server && node build/main.js"]

# pre-requisites: nvidia-docker
# docker build -t jan-gpu . -f Dockerfile.gpu
Expand Down
2 changes: 1 addition & 1 deletion charts/server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ common:
command: ['/bin/sh', '-c']
args:
[
'export NODE_ENV=production && yarn workspace jan-web build && cd web && npx serve out',
'export NODE_ENV=production && yarn workspace @janhq/web build && cd web && npx serve out',
]

replicaCount: 1
Expand Down
Empty file added docs/openapi/.gitkeep
Empty file.
Loading

0 comments on commit 50f819f

Please sign in to comment.