rework/lightweight #12

Merged
GauthierWebDev merged 106 commits from rework/lightweight into main 2025-04-21 16:27:38 +00:00
7 changed files with 4 additions and 33 deletions
Showing only changes of commit 14f308f33e - Show all commits

View File

@ -41,7 +41,7 @@ jobs:
VPS_PATH: ${{ secrets.VPS_PATH }}
VPS_PORT: ${{ secrets.VPS_PORT }}
run: |
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose-prod.yml build --no-cache"
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose.prod.yml build --no-cache"
echo "📦 The application have been builded on the VPS."
- name: Start the application
@ -51,5 +51,5 @@ jobs:
VPS_PATH: ${{ secrets.VPS_PATH }}
VPS_PORT: ${{ secrets.VPS_PORT }}
run: |
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose-prod.yml up -d"
ssh -i ~/.ssh/id_ed25519 -p $VPS_PORT $VPS_USER@$VPS_HOST "cd $VPS_PATH && docker compose -f compose.prod.yml up -d"
echo "🚀 The application has been started on the VPS."

View File

@ -12,4 +12,4 @@ RUN bun run build
EXPOSE 3000
CMD [ "pnpm", "preview" ]
CMD [ "bun", "run", "preview" ]

View File

View File

@ -1,14 +0,0 @@
services:
memento-dev:
container_name: memento-dev
build:
context: .
dockerfile: pnpm.Dockerfile
env_file:
- .env
ports:
- "${PORT}:${PORT}"
- "${HMR_PORT}:${HMR_PORT}"
volumes:
- ./app:/app
restart: unless-stopped

View File

@ -1,11 +0,0 @@
services:
memento-prod:
container_name: memento-prod
build:
context: .
dockerfile: production.Dockerfile
env_file:
- .env
ports:
- "${PORT}:${PORT}"
restart: unless-stopped

View File

@ -7,9 +7,6 @@ services:
env_file:
- .env
environment:
- NODE_ENV=development
- NODE_ENV=production
ports:
- "${PORT}:${PORT}"
- "${HMR_PORT}:${HMR_PORT}"
working_dir: /app
command: bun run preview

View File

@ -1 +0,0 @@
[{"content":"qu-est-ce-que-le-hook-use-reducer","hash":"qu-est-ce-que-le-hook-use-reducer","level":2,"subsections":[{"content":"quand-utiliser-use-reducer","hash":"quand-utiliser-use-reducer","level":3,"subsections":[{"content":"a-quoi-ressemble-un-reducer","hash":"a-quoi-ressemble-un-reducer","level":2,"subsections":[{"content":"comment-utiliser-use-reducer","hash":"comment-utiliser-use-reducer","level":2,"subsections":[{"content":"on-nettoie-tout-ca","hash":"on-nettoie-tout-ca","level":2,"subsections":[{"content":"typage-des-actions","hash":"typage-des-actions","level":3,"subsections":[{"content":"action-creators","hash":"action-creators","level":3,"subsections":[{"content":"les-fichiers-complets","hash":"les-fichiers-complets","level":2,"subsections":[{"content":"fichier-counter-jsx-ou-counter-tsx","hash":"fichier-counter-jsx-ou-counter-tsx","level":3,"subsections":[{"content":"c-est-l-heure-des-questions","hash":"c-est-l-heure-des-questions","level":2,"subsections":[{"content":"conclusion","hash":"conclusion","level":2,"subsections":[]}]}]}]}]}]}]}]}]}]}]}]