Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
383
Merge Requests
65
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
b246238e
Commit
b246238e
authored
5 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(refactor): Separate SSR live server and compiler
parent
f0f5d529
goal/local-infra
1 merge request
!766
WIP: Local infrastructure provisioner (front)
Pipeline
#115595882
running with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
16 deletions
+30
-16
containers/live-server-compiler/Dockerfile
0 → 100644
View file @
b246238e
FROM
node:13-alpine
COPY
monitor.sh /monitor.sh
COPY
build.sh /build.sh
ENTRYPOINT
["sh", "/monitor.sh"]
This diff is collapsed.
containers/live-server
/run-server
.sh
→
containers/live-server
-compiler/build
.sh
View file @
b246238e
...
...
@@ -8,6 +8,3 @@ npx ng run minds:server:production
echo
Compiling...
npm run compile:server
echo
Running...
npm run serve:ssr
This diff is collapsed.
containers/live-server-compiler/monitor.sh
0 → 100644
View file @
b246238e
#!/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
This diff is collapsed.
containers/live-server/Dockerfile
View file @
b246238e
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"]
This diff is collapsed.
containers/live-server/daemon.sh
deleted
100644 → 0
View file @
f0f5d529
#!/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
This diff is collapsed.
containers/live-server/monitor.sh
0 → 100644
View file @
b246238e
#!/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
This diff is collapsed.
containers/live-server/serve.sh
0 → 100644
View file @
b246238e
#!/usr/bin/env sh
set
-e
cd
/var/www/Minds/front
echo
Running...
npm run serve:ssr
This diff is collapsed.
package.json
View file @
b246238e
...
...
@@ -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"
,
...
...
This diff is collapsed.
Please
register
or
sign in
to comment