shashidharak99 commited on
Commit
939b06a
·
verified ·
1 Parent(s): e191448

Create server.sh

Browse files
Files changed (1) hide show
  1. server.sh +16 -0
server.sh ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ cd /app/project
4
+
5
+ npm install
6
+
7
+ npm run build
8
+
9
+ # Start initial server
10
+ npx serve -s build -l 7860 &
11
+
12
+ # Start cron
13
+ cron
14
+
15
+ # Keep container alive
16
+ tail -f /var/log/cron.log