Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit

Permalink
Fix volume name for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Mar 7, 2024
1 parent c6b48fd commit 32c91d7
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
6 changes: 3 additions & 3 deletions docker-compose.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ services:
networks:
- proxy
volumes:
- "buyer-app-static-content:/buyer-app"
- "front-office-app:/front-office-app"
nginx:
build:
context: ./
Expand All @@ -57,7 +57,7 @@ services:
networks:
- proxy
volumes:
- "buyer-app-static-content:/buyer-app"
- "front-office-app:/front-office-app"
- "/home/www/plebeian-market-state/media:/media"
finalize-auctions:
env_file: .env.staging
Expand Down Expand Up @@ -90,4 +90,4 @@ networks:
external: true

volumes:
buyer-app-static-content:
front-office-app:
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ server {
}
location / {
add_header Access-Control-Allow-Origin *;
root /buyer-app;
root /front-office-app;
index index.html;
try_files \$uri \$uri/ /index.html;
}
Expand Down Expand Up @@ -265,7 +265,7 @@ services:
- api
env_file: .env
volumes:
- "buyer-app-static-content:/buyer-app"
- "front-office-app:/front-office-app"
nginx:
image: nginx:1.25-alpine-slim
restart: always
Expand All @@ -281,7 +281,7 @@ services:
- "./plebeian-market-nginx:/etc/nginx/conf.d"
- "./plebeian-market-certificates:/cert"
- "./plebeian-market-state/media:/media"
- "buyer-app-static-content:/buyer-app"
- "front-office-app:/front-office-app"
networks:
db_network:
Expand All @@ -292,7 +292,7 @@ networks:
driver: bridge
volumes:
buyer-app-static-content:
front-office-app:
EOF
fi # docker-compose.yml

Expand Down
2 changes: 1 addition & 1 deletion scripts/prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

DIR="$(cd "$(dirname "$0")" && pwd)"

$DIR/do.sh prod build && $DIR/do.sh prod down && docker volume rm plebeian-market_buyer-app-static-content && $DIR/do.sh prod up -d
$DIR/do.sh prod build && $DIR/do.sh prod down --volumes && $DIR/do.sh prod up -d
2 changes: 1 addition & 1 deletion scripts/staging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

DIR="$(cd "$(dirname "$0")" && pwd)"

$DIR/do.sh staging down && $DIR/do.sh staging build && docker volume rm plebeian-market_buyer-app-static-content && $DIR/do.sh staging up -d
$DIR/do.sh staging down --volumes && $DIR/do.sh staging build && $DIR/do.sh staging up -d
2 changes: 1 addition & 1 deletion services/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ server {

location / {
add_header Access-Control-Allow-Origin *;
root /buyer-app;
root /front-office-app;
index index.html;
try_files $uri $uri/ /index.html;
}
Expand Down
2 changes: 1 addition & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN cd /web/backoffice \

FROM node:18-alpine

WORKDIR /buyer-app
WORKDIR /front-office-app
COPY --from=builder /web/frontoffice/build .

WORKDIR /app
Expand Down
4 changes: 1 addition & 3 deletions web/backoffice/src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {browser} from "$app/environment";
import {goto} from "$app/navigation";
import { AuthRequired, AuthBehavior, Info } from "$lib/stores";
import { AuthRequired, AuthBehavior } from "$lib/stores";

export let SATS_IN_BTC = 100000000;
export let SHORT_TITLE_LIMIT = 70;
Expand Down

0 comments on commit 32c91d7

Please sign in to comment.