source: gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/react-gui/START-PROD.sh@ 38785

Last change on this file since 38785 was 38785, checked in by davidb, 4 months ago

Minor improvements to starting/stoping the NextJS server

  • Property svn:executable set to *
File size: 590 bytes
Line 
1#!/bin/bash
2
3echo ""
4echo "===="
5echo "Staring NodeJS-based Next server with 'nohup' in the background"
6echo "=> Run ./STOP-PROD.sh to (currently) list the process that need"
7echo " to be manually stopped with 'kill'"
8echo "----"
9echo ""
10
11#echo "Logging output to nohup.out"
12#echo ""
13
14echo "================================================================================" >> nohup.out
15echo "START-PROD.sh run: $(date) " >> nohup.out
16echo "" >> nohup.out
17
18nohup npm run start &
19
20echo ""
21
22# Small sleep, just to let the nohup output have time to be dislayed
23sleep 1
24
25
26echo "===="
27echo ""
Note: See TracBrowser for help on using the repository browser.