Spaces:
Running
Running
Julien Chaumond
commited on
Commit
•
c5ed897
1
Parent(s):
2d2e027
deploy script + change server port
Browse files- deploy.sh +23 -0
- server/server.ts +1 -1
deploy.sh
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
git checkout **/package-lock.json
|
3 |
+
git pull
|
4 |
+
|
5 |
+
# Front
|
6 |
+
pushd front
|
7 |
+
npm i
|
8 |
+
time tsc
|
9 |
+
popd
|
10 |
+
|
11 |
+
# Grunt
|
12 |
+
pushd grunt
|
13 |
+
npm i
|
14 |
+
grunt
|
15 |
+
popd
|
16 |
+
|
17 |
+
# Server
|
18 |
+
pushd server
|
19 |
+
npm i
|
20 |
+
time tsc
|
21 |
+
popd
|
22 |
+
|
23 |
+
|
server/server.ts
CHANGED
@@ -5,7 +5,7 @@ import __rootDir from './lib/RootDirFinder';
|
|
5 |
import { c } from './lib/Log';
|
6 |
import * as Utils from './lib/Utils';
|
7 |
const app = express();
|
8 |
-
const PORT =
|
9 |
const __frontDir = __rootDir+`/front`;
|
10 |
|
11 |
// Express setup
|
|
|
5 |
import { c } from './lib/Log';
|
6 |
import * as Utils from './lib/Utils';
|
7 |
const app = express();
|
8 |
+
const PORT = 3200;
|
9 |
const __frontDir = __rootDir+`/front`;
|
10 |
|
11 |
// Express setup
|