diff --git a/docs/InstructionsForDevelopers.md b/docs/InstructionsForDevelopers.md index 199c54fa5..935591328 100644 --- a/docs/InstructionsForDevelopers.md +++ b/docs/InstructionsForDevelopers.md @@ -38,7 +38,9 @@ You may access RA frontend at [http://127.0.0.1:7164/exercises/](http://127.0.0. 3) Developing procedure -After running the script, the src folder will be created, which contains all the files of the RoboticsApplicationManager. You can create branches and commit normally to the RAM repo from inside that folder. For the rest of the changes, you can also work normally from the RoboticsAcademy folder, the contents of the src folder together with common boilerplate files are automatically ignored. +After running the script, the src folder will be created, which contains all the files of the RoboticsApplicationManager. You can create branches and commit normally to the RAM repo from inside that folder. For the rest of the changes, you can also work normally from the RoboticsAcademy folder, the contents of the src folder together with common boilerplate files are automatically ignored. + +Whenever you want to finish developing, you just can close the script with Crtl+C. It will take care of cleaning files so you can restart again without any additional config. ### Using Docker compose diff --git a/scripts/develop_academy.sh b/scripts/develop_academy.sh index a9c42bcec..6ca6784b7 100644 --- a/scripts/develop_academy.sh +++ b/scripts/develop_academy.sh @@ -39,6 +39,11 @@ if ! command -v nvm &> /dev/null; then source $NVM_DIR/nvm.sh; fi +# Prepare yarn +if ! command -v yarn --version &> /dev/null; then + npm install --global yarn +fi + # Prepare the frontend nvm install 16 nvm use 16 @@ -54,8 +59,7 @@ if [ $radi_version != "humble" ]; then fi cp compose_cfg/$compose_file docker-compose.yaml - # Proceed with docker-compose commands -docker-compose up; -docker-compose down; +docker compose up; +docker compose down; rm docker-compose.yaml