mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
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:
12
configure.sh
12
configure.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user