Chore: Change custom_pocketbase to brawlset_server
This commit is contained in:
parent
cf17e52424
commit
f05bec6f17
7 changed files with 8 additions and 7 deletions
|
@ -3,3 +3,4 @@ frontend/.svelte-kit
|
||||||
frontend/build
|
frontend/build
|
||||||
|
|
||||||
backend/pb_data
|
backend/pb_data
|
||||||
|
backend/brawlset_server
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,3 +3,4 @@ frontend/.svelte-kit
|
||||||
frontend/build
|
frontend/build
|
||||||
|
|
||||||
backend/pb_data
|
backend/pb_data
|
||||||
|
backend/brawlset_server
|
||||||
|
|
|
@ -10,8 +10,7 @@ RUN go mod download
|
||||||
COPY backend/*.go ./
|
COPY backend/*.go ./
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -o custom_pocketbase
|
RUN CGO_ENABLED=0 GOOS=linux go build .
|
||||||
|
|
||||||
FROM oven/bun:latest AS base
|
FROM oven/bun:latest AS base
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
@ -39,7 +38,7 @@ WORKDIR /usr/src/app
|
||||||
ENV GO_ENV=production
|
ENV GO_ENV=production
|
||||||
COPY start_server.sh .
|
COPY start_server.sh .
|
||||||
COPY --from=prerelease /usr/src/app/build .
|
COPY --from=prerelease /usr/src/app/build .
|
||||||
COPY --from=gobuild /usr/src/app/custom_pocketbase .
|
COPY --from=gobuild /usr/src/app/brawlset_server .
|
||||||
COPY backend/pb_migrations ./pb_migrations
|
COPY backend/pb_migrations ./pb_migrations
|
||||||
|
|
||||||
# run the app
|
# run the app
|
||||||
|
|
|
@ -9,8 +9,8 @@ Une version en ligne est accessible [ici](https://brawlset-beta.shenanigans.cc).
|
||||||
Pour développer, vous devez compiler et lancer une instance de pocketbase custom comme ceci :
|
Pour développer, vous devez compiler et lancer une instance de pocketbase custom comme ceci :
|
||||||
```
|
```
|
||||||
cd backend
|
cd backend
|
||||||
go build -o custom_pocketbase *.go
|
go build .
|
||||||
GO_ENV=dev ./custom_pocketbase serve
|
GO_ENV=dev ./brawlset_server serve
|
||||||
```
|
```
|
||||||
|
|
||||||
Vous pouvez accéder à l'application pocketbase à l'adresse `http://localhost:8090` mais toutes les requêtes qui ne sont pas de l'api ou du dashboard pockerbase seront renvoyées vers `http://localhost:5173` afin de pouvoir éditer l'application svelte en mode dev. Vous devez donc lancer une instance de sveltekit en mode dev :
|
Vous pouvez accéder à l'application pocketbase à l'adresse `http://localhost:8090` mais toutes les requêtes qui ne sont pas de l'api ou du dashboard pockerbase seront renvoyées vers `http://localhost:5173` afin de pouvoir éditer l'application svelte en mode dev. Vous devez donc lancer une instance de sveltekit en mode dev :
|
||||||
|
|
Binary file not shown.
|
@ -1,4 +1,4 @@
|
||||||
module brawlset
|
module brawlset_server
|
||||||
|
|
||||||
go 1.24.1
|
go 1.24.1
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
bun run start </dev/null &>/dev/null &
|
bun run start </dev/null &>/dev/null &
|
||||||
./custom_pocketbase serve --http=0.0.0.0:8090
|
./brawlset_server serve --http=0.0.0.0:8090
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue