rework/lightweight #12
@ -41,7 +41,7 @@ jobs:
|
|||||||
VPS_PATH: ${{ secrets.VPS_PATH }}
|
VPS_PATH: ${{ secrets.VPS_PATH }}
|
||||||
VPS_PORT: ${{ secrets.VPS_PORT }}
|
VPS_PORT: ${{ secrets.VPS_PORT }}
|
||||||
run: |
|
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."
|
echo "📦 The application have been builded on the VPS."
|
||||||
|
|
||||||
- name: Start the application
|
- name: Start the application
|
||||||
@ -51,5 +51,5 @@ jobs:
|
|||||||
VPS_PATH: ${{ secrets.VPS_PATH }}
|
VPS_PATH: ${{ secrets.VPS_PATH }}
|
||||||
VPS_PORT: ${{ secrets.VPS_PORT }}
|
VPS_PORT: ${{ secrets.VPS_PORT }}
|
||||||
run: |
|
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."
|
echo "🚀 The application has been started on the VPS."
|
||||||
|
|||||||
@ -12,4 +12,4 @@ RUN bun run build
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD [ "pnpm", "preview" ]
|
CMD [ "bun", "run", "preview" ]
|
||||||
@ -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
|
|
||||||
@ -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
|
|
||||||
@ -7,9 +7,6 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=development
|
- NODE_ENV=production
|
||||||
ports:
|
ports:
|
||||||
- "${PORT}:${PORT}"
|
- "${PORT}:${PORT}"
|
||||||
- "${HMR_PORT}:${HMR_PORT}"
|
|
||||||
working_dir: /app
|
|
||||||
command: bun run preview
|
|
||||||
|
|||||||
@ -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":[]}]}]}]}]}]}]}]}]}]}]}]
|
|
||||||
Loading…
Reference in New Issue
Block a user