-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart-all.js
30 lines (30 loc) · 986 Bytes
/
start-all.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const concurrently = require('concurrently');
concurrently([
// Install frontend packages and Run frontend
{
name: 'frontend ',
prefixColor: 'green',
command: 'cd frontend && npm install && npm start'
},
// run backend
{
name: 'backend ',
prefixColor: 'blue',
command: 'cd backend && SPRING_PROFILES_ACTIVE=local gradle bootRun'
},
// run image service
{
name: 'image ',
prefixColor: 'red',
command: 'cd image-service && SPRING_PROFILES_ACTIVE=local gradle bootRun'
},
// run ucll-recommendation-engine (make sure we're using java 1.8)
{
name: 'recommend',
prefixColor: 'cyan',
command: 'cd ucll-recommendation-engine && SPRING_PROFILES_ACTIVE=local JAVA_HOME=`/usr/libexec/java_home -v 1.8` gradle bootRun'
},
], {
prefix: 'name',
restartTries: 0,
});