#!/usr/bin/env bash set -e # Xvfb :99 -screen 0 1920x1080x24 & echo "Starting app (npm start) in background..." npm start # npm start & # APP_PID=$! # echo "App PID: $APP_PID" # sleep 1 # echo "Starting nginx (foreground)..." # nginx -g 'daemon off;'