Refactor frontend build and deployment scripts; consolidate services into a single app

- Updated package.json in StatusPage to correct dependency path for Common.
- Enhanced main package.json with new scripts for building and watching frontend applications.
- Modified tsconfig.json to exclude frontend directories from compilation.
- Simplified Nginx configuration by removing individual upstreams for each service and routing all to a single app upstream.
- Refactored configure.sh to streamline Dockerfile generation.
- Cleaned up docker-compose files by consolidating services and removing unnecessary definitions.
- Introduced new frontend handling logic in Index.ts for rendering different frontend applications.
- Added utility functions for managing status page data and RSS feeds in StatusPage.ts.
- Created dev.sh and frontend-run.sh scripts to facilitate development and build processes for frontend applications.
This commit is contained in:
Nawaz Dhandala
2026-03-03 17:51:47 +00:00
parent 4e8fde3b23
commit 3e5cd57082
35 changed files with 1466 additions and 41575 deletions

View File

@@ -196,16 +196,12 @@ main() {
export $(grep -v '^#' config.env | xargs)
print_info "Generating Dockerfile configurations..."
find . -maxdepth 1 -type d -exec sh -c '
for dir do
if [ -f "$dir/Dockerfile.tpl" ]; then
cat "$dir/Dockerfile.tpl" | gomplate > "$dir/Dockerfile"
fi
done
' sh {} +
while IFS= read -r dockerfile_template; do
cat "$dockerfile_template" | gomplate > "${dockerfile_template%.tpl}"
done < <(find . -type f -name "Dockerfile.tpl" -not -path "*/node_modules/*")
print_success "OneUptime installation completed successfully! 🚀"
}
# Run main function
main
main