From 410fd4a09e32b38235c845eea0ec0b4ad0b1558f Mon Sep 17 00:00:00 2001 From: Mireya Cueto Garrido Date: Wed, 13 May 2026 10:34:32 +0200 Subject: [PATCH 1/3] Create .gilab-ci.yml --- .gilab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gilab-ci.yml diff --git a/.gilab-ci.yml b/.gilab-ci.yml new file mode 100644 index 0000000..eae3f23 --- /dev/null +++ b/.gilab-ci.yml @@ -0,0 +1,37 @@ +stages: + - deploy + +variables: + APP_NAME: "orcid-system" + BACKEND_PORT: "8072" + FRONTEND_PORT: "8073" + +deploy_to_sinbad2: + stage: deploy + + before_script: + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts + + script: + - echo "Enviando código a Sinbad2..." + - ssh $REMOTE_USER@$SSH_HOST "mkdir -p ~/deploy_$APP_NAME" + + - scp -r ./* $REMOTE_USER@$SSH_HOST:~/deploy_$APP_NAME/ + + - echo "Levantando contenedores con Docker Compose..." + - ssh $REMOTE_USER@$SSH_HOST " + cd ~/deploy_$APP_NAME && + docker compose down --remove-orphans && + docker compose up --build -d + " + + - echo "Despliegue completado." + - echo "Backend -> http://$SSH_HOST:$BACKEND_PORT" + - echo "Frontend -> http://$SSH_HOST:$FRONTEND_PORT" + + only: + - branches From c945a59bfcc093ef10b73a9123c092c6d07690c3 Mon Sep 17 00:00:00 2001 From: Mireya Cueto Garrido Date: Wed, 13 May 2026 10:34:45 +0200 Subject: [PATCH 2/3] Rename .gilab-ci.yml to .gitlab-ci.yml --- .gilab-ci.yml | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .gilab-ci.yml diff --git a/.gilab-ci.yml b/.gilab-ci.yml deleted file mode 100644 index eae3f23..0000000 --- a/.gilab-ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -stages: - - deploy - -variables: - APP_NAME: "orcid-system" - BACKEND_PORT: "8072" - FRONTEND_PORT: "8073" - -deploy_to_sinbad2: - stage: deploy - - before_script: - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - - mkdir -p ~/.ssh - - chmod 700 ~/.ssh - - ssh-keyscan $SSH_HOST >> ~/.ssh/known_hosts - - script: - - echo "Enviando código a Sinbad2..." - - ssh $REMOTE_USER@$SSH_HOST "mkdir -p ~/deploy_$APP_NAME" - - - scp -r ./* $REMOTE_USER@$SSH_HOST:~/deploy_$APP_NAME/ - - - echo "Levantando contenedores con Docker Compose..." - - ssh $REMOTE_USER@$SSH_HOST " - cd ~/deploy_$APP_NAME && - docker compose down --remove-orphans && - docker compose up --build -d - " - - - echo "Despliegue completado." - - echo "Backend -> http://$SSH_HOST:$BACKEND_PORT" - - echo "Frontend -> http://$SSH_HOST:$FRONTEND_PORT" - - only: - - branches From 1bee9fe74bd772b28e5fe8e1abcda6edc8f9abc1 Mon Sep 17 00:00:00 2001 From: Mireya Cueto Garrido Date: Wed, 13 May 2026 11:01:43 +0200 Subject: [PATCH 3/3] Delete frontend/README.md --- frontend/README.md | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 frontend/README.md diff --git a/frontend/README.md b/frontend/README.md deleted file mode 100644 index a36934d..0000000 --- a/frontend/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# React + Vite - -This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. - -Currently, two official plugins are available: - -- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs) -- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) - -## React Compiler - -The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.