diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ac5b05f..04817b6 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -30,8 +30,4 @@ jobs: with: context: Rest_API/ push: true - tags: leoomaia/server_cloud - - - name: Update Kubernetes deployment - run: | - kubectl apply -f kubernetes/deployment.yaml \ No newline at end of file + tags: leoomaia/server_cloud \ No newline at end of file diff --git a/Rest_API/server.py b/Rest_API/server.py index 87b7e56..9dcc88a 100644 --- a/Rest_API/server.py +++ b/Rest_API/server.py @@ -64,4 +64,4 @@ def get_songs(): return jsonify({'songs': songs_data}) if __name__ == '__main__': - app.run(port=32196, host="0.0.0.0") \ No newline at end of file + app.run(port=32197, host="0.0.0.0") \ No newline at end of file diff --git a/Rest_API/static/scripts.js b/Rest_API/static/scripts.js index cfb8699..fbefdc3 100644 --- a/Rest_API/static/scripts.js +++ b/Rest_API/static/scripts.js @@ -1,7 +1,7 @@ let allSongsList = []; // Initialize as an empty array // Fetch songs from the API -fetch('http://localhost:32196/api/songs') +fetch('http://localhost:32197/api/songs') .then(response => { if (!response.ok) { throw new Error('Network response was not ok'); @@ -110,7 +110,7 @@ function displayRecommendations(recommendations) { // Event listener for Find Playlist button document.getElementById("findPlaylistBtn").addEventListener("click", async () => { try { - const response = await fetch('http://localhost:32196/api/recommend', { + const response = await fetch('http://localhost:32197/api/recommend', { method: 'POST', headers: { 'Content-Type': 'application/json'