Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented deploy as single service changes #124

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SiriChandanaGarimella
Copy link
Collaborator

@SiriChandanaGarimella SiriChandanaGarimella commented Dec 17, 2024

Fixes #100

What was changed?

  • Implemented single service deployment by serving the React frontend through the Flask backend server.
  • Updated Orca dashboard routing from legacy to a new component (renamed OrcaDashboardComponent to OrcaDashboardComponentLegacy and DraftOrcaDashboard as OrcaDashboardComponent and set new component as a default route)

Why was it changed?

  • To simplify application deployment and maintenance
  • To eliminate the need for running separate frontend and backend servers on Raspberry Pi deployment
  • To standardize the Orca dashboard implementation by using the new component structure

How was it changed?

  • Added deploy_as_single_service.sh script: It builds the React application, copies the build files to flask's static directory and starts the flask server
  • Added run_prod_server.sh script for the production env
  • Updated all the relevant files in client-app and server folders
  • Updated README.md file with the steps to run it as single service
  • Renamed the original OrcaDashboard component to OrcaDashboardComponentLegacy for reference
  • Renamed DraftOrcaDashboard component as OrcaDashboardComponent, which has the new UI changes
  • Set the new OrcaDashboardComponent as the default route in App.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Script to deploy the application as a single service
1 participant