Commit b246238e authored by Emiliano Balbuena's avatar Emiliano Balbuena

(refactor): Separate SSR live server and compiler

1 merge request!766WIP: Local infrastructure provisioner (front)
Pipeline #115595882 passed with stages
in 89 minutes and 54 seconds
FROM node:13-alpine
COPY monitor.sh /monitor.sh
COPY build.sh /build.sh
ENTRYPOINT ["sh", "/monitor.sh"]
......@@ -8,6 +8,3 @@ npx ng run minds:server:production
echo Compiling...
npm run compile:server
echo Running...
npm run serve:ssr
#!/usr/bin/env sh
set -e
cd /var/www/Minds/front
npx nodemon -L --delay 3 --watch dist --ignore dist/server/ --ignore dist/server.js --ext js,css,jpg,png,svg,mp4,webp,webm --exec "/usr/bin/env sh" /build.sh
FROM node:13-alpine
COPY daemon.sh /daemon.sh
COPY run-server.sh /run-server.sh
COPY monitor.sh /monitor.sh
COPY serve.sh /serve.sh
ENTRYPOINT ["sh", "/daemon.sh"]
ENTRYPOINT ["sh", "/monitor.sh"]
#!/usr/bin/env sh
set -e
cd /var/www/Minds/front
npx nodemon --delay 3 --watch dist/en --ext js,css,jpg,png,svg,mp4,webp,webm --exec "/usr/bin/env sh" /run-server.sh
#!/usr/bin/env sh
set -e
cd /var/www/Minds/front
npx nodemon -L --delay 3 --watch dist --ignore dist/en --ext js,mjs --exec "/usr/bin/env sh" /serve.sh
#!/usr/bin/env sh
set -e
cd /var/www/Minds/front
echo Running...
npm run serve:ssr
......@@ -8,11 +8,10 @@
"preinstall": "git config core.hooksPath .git/hooks/",
"prebuild": "gulp build.sass",
"build": "sh build/base-locale.sh dist",
"prebuild-dev": "gulp build.sass --deploy-url=http://localhost",
"build-dev": "npm run build:dev",
"serve-dev": "npm run server:ssr",
"build:dev": "ng build --output-path=dist/en --deploy-url=en/ --watch=true --poll=800",
"serve:dev": "ng serve --host=0.0.0.0 --deploy-url=/ --configuration=hmr --hmr --poll=800 --progress --disableHostCheck=true",
"build-dev": "echo 'Deprecated, please use build:dev'; npm run build:dev --",
"serve-dev": "echo 'Deprecated, please use serve:ssr'; npm run serve:ssr --",
"prebuild:dev": "gulp build.sass --deploy-url=http://localhost:8080/en/",
"build:dev": "ng build --output-path=dist/en --deploy-url=http://localhost:8080/en/ --watch=true --poll=800 --aot",
"test": "ng test",
"lint": "ng lint",
"e2e": "cypress run --debug",
......
Please register or to comment