Skip to content

Commit

Permalink
1,537th Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyam-Chen committed Aug 22, 2024
1 parent b5f5cd6 commit bd004d9
Show file tree
Hide file tree
Showing 18 changed files with 28 additions and 845 deletions.
6 changes: 3 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
dist
coverage
**/node_modules
**/dist
**/coverage
**/test-results
**/.vitepress/cache
*.log
File renamed without changes.
2 changes: 1 addition & 1 deletion infra/Dockerfile → .github/registry/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ FROM caddy:2
ARG SITE_ADDRESS
ENV SITE_ADDRESS=$SITE_ADDRESS

COPY --from=base /usr/src/app/infra/Caddyfile /etc/caddy/Caddyfile
COPY --from=base /usr/src/app/.github/registry/Caddyfile /etc/caddy/Caddyfile
COPY --from=base /usr/src/app/app/dist /usr/share/caddy
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.DS_Store
node_modules
dist
coverage
**/node_modules
**/dist
**/coverage
**/test-results
**/.vitepress/cache
*.log
4 changes: 2 additions & 2 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
localhost {
:4173 {
encode gzip
root * /usr/share/caddy

Expand All @@ -9,7 +9,7 @@ localhost {

handle_path /api/* {
rewrite * /api{uri}
reverse_proxy 192.168.100.202:3000
reverse_proxy :3000
}

header /service-worker.js {
Expand Down
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,27 @@ Add environment variables to the Render build.
API_URL=xxx
```

### Container registry

Push the image to your registry.

```sh
$ docker build -f ./.github/registry/Dockerfile \
--build-arg SITE_ADDRESS=$SITE_ADDRESS \
-t $SITE_NAME .

$ docker tag $SITE_NAME $REGISTRY_URL

$ docker push $REGISTRY_URL
```

## Directory Structure

The structure follows the LIFT Guidelines.

```coffee
.
├── .github/workflows/ci.yml
├── .github
├── app
│ ├── public
│ ├── src
Expand All @@ -192,11 +206,6 @@ The structure follows the LIFT Guidelines.
│ ├── package.json
│ ├── tsconfig.json
│ └── vite.config.ts
├── docs -> Write documentation with VitePress
│ ├── .vitepress
│ ├── index.md
│ ├── package.json
│ └── vite.config.ts
├── e2e -> End-to-end testing of web pages
│ ├── src
│ ├── package.json
Expand All @@ -212,17 +221,17 @@ The structure follows the LIFT Guidelines.
│ ├── package.json
│ ├── tsconfig.json
│ └── vite.config.ts
├── .dockerignore
├── .editorconfig
├── .eslintrc
├── .gitignore
├── .prettierrc
├── biome.json
├── Caddyfile
├── compose.yaml
├── Dockerfile
├── eslint.config.js
├── package.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── prettier.config.js
├── README.md
└── render.yaml
```
16 changes: 0 additions & 16 deletions docs/.vitepress/config.ts

This file was deleted.

10 changes: 0 additions & 10 deletions docs/.vitepress/theme/index.ts

This file was deleted.

116 changes: 0 additions & 116 deletions docs/.vitepress/theme/vars.css

This file was deleted.

38 changes: 0 additions & 38 deletions docs/index.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions infra/Pulumi.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions infra/package.json

This file was deleted.

37 changes: 0 additions & 37 deletions infra/src/index.ts

This file was deleted.

30 changes: 0 additions & 30 deletions infra/tsconfig.json

This file was deleted.

Loading

0 comments on commit bd004d9

Please sign in to comment.