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
64
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
f0f5d529
Commit
f0f5d529
authored
32 minutes ago
by
Emiliano Balbuena
Browse files
Options
Download
(feat): Front live server
parent
dfb73b7d
goal/local-infra
1 merge request
!766
WIP: Local infrastructure provisioner (front)
Pipeline
#115370692
failed with stages
in 28 minutes and 56 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
+15
-4
containers/live-server/Dockerfile
View file @
f0f5d529
FROM
node:13-alpine
COPY
daemon.sh /daemon.sh
COPY
run-server.sh /run-server.sh
ENTRYPOINT
["sh", "/
run-server
.sh"]
ENTRYPOINT
["sh", "/
daemon
.sh"]
This diff is collapsed.
containers/live-server/daemon.sh
0 → 100644
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/run-server.sh
View file @
f0f5d529
#!/usr/bin/env bash
#!/usr/bin/env sh
set
-e
cd
/var/www/Minds/front
echo
Building...
npx ng run minds:server:production
echo
Compiling...
npm run compile:server
echo
Running...
npm run serve:ssr
This diff is collapsed.
package.json
View file @
f0f5d529
...
...
@@ -11,7 +11,7 @@
"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 --deploy-url=
/ --watch=true --poll=800"
,
"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"
,
"test"
:
"ng test"
,
"lint"
:
"ng lint"
,
...
...
This diff is collapsed.
Please
register
or
sign in
to comment