#!/bin/sh # Start the Node.js server in the background node index.js & NODE_PID=$! # Give the server a moment to start sleep 3 # Start nginx in the foreground nginx -g "daemon off;"