- Convert CRLF to LF line endings in all shell scripts - Ensure all scripts are executable - Fixes 'bad interpreter' error on Unix systems - Scripts now work on macOS, Linux, and WSL
21 lines
No EOL
527 B
Bash
Executable file
21 lines
No EOL
527 B
Bash
Executable file
#!/bin/sh
|
|
# Ideas Generator 2025 - Frontend Entrypoint Script
|
|
# Substitutes environment variables in nginx configuration
|
|
|
|
set -e
|
|
|
|
# Default values
|
|
export NGINX_HOST=${NGINX_HOST:-localhost}
|
|
|
|
echo "🚀 Configuring nginx for Ideas Generator 2025..."
|
|
echo " Host: $NGINX_HOST"
|
|
|
|
# Substitute environment variables in nginx config
|
|
envsubst '${NGINX_HOST}' < /etc/nginx/nginx.conf.template > /etc/nginx/nginx.conf
|
|
|
|
echo "✅ Nginx configuration completed"
|
|
|
|
# Test nginx configuration
|
|
nginx -t
|
|
|
|
echo "🌐 Starting nginx server..." |