Renamed helpapp-frontend to frontend and helpapp-backend to backend

This commit is contained in:
Yohan Boujon 2024-12-22 16:11:40 +01:00
parent 87829a7766
commit 2da048febf
29 changed files with 7 additions and 7 deletions

View file

@ -23,10 +23,10 @@ jobs:
distribution: 'microsoft'
- name: Build with Maven
run: cd helpapp-backend && mvn clean install
run: cd backend && mvn clean install
- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: java-app
path: '${{ github.workspace }}/helpapp-backend/*'
path: '${{ github.workspace }}/backend/*'

View file

@ -44,7 +44,7 @@ echo -e $GREEN"Database setup successful!"$RESET
services=()
port=8081
echo "> Checking Microservices..."
for dir in helpapp-backend/*-service; do
for dir in backend/*-service; do
if [[ -d "$dir" ]]; then
services+=("$dir")
fi
@ -73,5 +73,5 @@ for service in "${services[@]}"; do
generated_js+="const $modified_name=$port\n"
((port++))
done
echo -e "$generated_js" > helpapp-frontend/generated.js
echo -e "$generated_js" > frontend/generated.js
echo -e $GREEN"Setup successfull for each microservice !"

View file

@ -9,7 +9,7 @@ ports=()
list_services() {
base_port=8081
cd "$SCRIPT_DIR/helpapp-backend"
cd "$SCRIPT_DIR/backend"
for dir in *-service; do
if [[ -d "$dir" ]]; then
services+=("$dir")
@ -44,7 +44,7 @@ check_services() {
# Function to start services
start_services() {
echo "" > "$SCRIPT_DIR"/process.tmp
cd "$SCRIPT_DIR/helpapp-backend" || exit 1
cd "$SCRIPT_DIR/backend" || exit 1
for service in "${services[@]}"; do
echo "> Starting $service..."
mvn spring-boot:run -pl "$service" > /dev/null 2>&1 &
@ -74,7 +74,7 @@ elif [ "$1" == "stop" ]; then
list_services
stop_services
elif [ "$1" == "compile" ]; then
cd "$SCRIPT_DIR/helpapp-backend" || exit 1
cd "$SCRIPT_DIR/backend" || exit 1
mvn clean install
else
echo -e $RED"Usage: $0 {compile|start|stop}"$RESET