We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4707dc2 commit 7630ab3Copy full SHA for 7630ab3
1 file changed
scripts/server
@@ -0,0 +1,20 @@
1
+#!/bin/sh
2
+
3
+# script/server: Launch the application and any extra required processes
4
+# locally.
5
6
+set -e
7
8
+cd "$(dirname "$0")/.."
9
10
+# ensure everything in the app is up to date.
11
+script/update
12
13
+test -z "$NODE_ENV" &&
14
+ NODE_ENV='development'
15
16
+# Start the React app on port 4321
17
+cd client && PORT=4321 npm start &
18
19
+# Start the server app on port 8321
20
+cd server && PORT=8321 npm start &
0 commit comments