| @@ -195,32 +195,42 @@ Don't confuse the project level `/src` directory with the `/src` directory Go us | |||||
| A more opinionated project template with sample/reusable configs, scripts and code is a WIP. | A more opinionated project template with sample/reusable configs, scripts and code is a WIP. | ||||
| Clone the existing repository from the git server to the production server: | |||||
| git clone https://git.afasystems.it/pollutri/res_levis_backend.git | |||||
| ###Comandi per scaricare aggiornamenti dalla repository in caso di modifica da un altro PC: | |||||
| NOTE: this command downloads the entire git repository, including all branches | |||||
| the default branch is the first one in the list: chore/proposed-structure | |||||
| Clona il repository esistente dal server git al server di produzione: | |||||
| git clone https://git.afasystems.it/pollutri/res_levis_backend.git | |||||
| NOTA: con questo comando si scarica tutto il git inclusi i diversi Branch | |||||
| il Branch di default è il pirmo della lista: chore/proposed-structure | |||||
| To switch to the master branch, run: | |||||
| cd res_levis_backend/ | |||||
| git fetch origin | |||||
| git switch master | |||||
| To switch back to the default branch, run: | |||||
| git switch chore/proposed-structure | |||||
| per passare a quello master occorre: | |||||
| git fetch origin | |||||
| git switch master | |||||
| Project directory structure: | |||||
| internal: contains the source code | |||||
| scripts/build: contains the scripts to rebuild docker images build.sh <-- define the version tag here, e.g., v1.3 | |||||
| afasystemadmin/ble-ai-localizer bridge_v1.3 | |||||
| afasystemadmin/ble-ai-localizer decoder_v1.3 | |||||
| afasystemadmin/ble-ai-localizer location_v1.3 | |||||
| afasystemadmin/ble-ai-localizer server_v1.3 | |||||
| build: folder containing the docker-compose.yaml, which must be kept aligned with the version tag | |||||
| build/env: environment variable files used by each respective image presense-xxxxx.env | |||||
| scripts/api/smoke_test.sh runtime test script for verification itself | |||||
| per tornare a quello di default | |||||
| git switch chore/proposed-structure | |||||
| Commands for subsequent commits and pushes: | |||||
| Shows modified files not yet added to the commit in red, and modified files added to the commit in green; ignores unmodified files: | |||||
| git status | |||||
| Comandi per commit e push successivi: | |||||
| Mostra in rosso i file modificati non aggiunti nel commit, e in verde i file modifciati aggiunti al commit, ignora i file non modificati: | |||||
| git status | |||||
| git add . | |||||
| git commit -m "Modified..." | |||||
| git add . | |||||
| git commit -m "Modificato..." | |||||
| It is not necessary to specify the origin: | |||||
| git push | |||||
| NOTE: enter your user credentials | |||||
| Non è necessario specificare l'origine: | |||||
| git push | |||||
| NOTA: inserire le credenziali del proprio utente | |||||
| Update the current folder by downloading from the server: | |||||
| git pull | |||||
| Aggiorna la cartella attuale scaricando dal server: | |||||
| git pull | |||||