diff --git a/install.sh b/install.sh index 7f7fe4b..41b1d60 100644 --- a/install.sh +++ b/install.sh @@ -56,7 +56,8 @@ if command -v node &> /dev/null; then # Run the Node.js proxy service echo "Running Node.js proxy service..." - node index.js + nohup node index.js > /dev/null 2>&1 & + echo "Node.js proxy service running in the background. You can check the logs with 'tail -f nohup.out'." else echo "Node.js is not installed. Proceeding with swoole-cli setup." @@ -104,5 +105,6 @@ else # Run the PHP indexer echo "Running PHP indexer..." - ./swoole-cli ./index.php + nohup ./swoole-cli ./index.php > /dev/null 2>&1 & + echo "PHP indexer running in the background. You can check the logs with 'tail -f nohup.out'." fi