Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ Check node log `docker logs lineblocs-user-app`

Log in to terminal of container -> `docker exec -it lineblocs-user-app bash`

Modify lineblocs-site project under `user-app/app`
Modify lineblocs-site project under `user-app/app` or check config on gulpfile.js

Use `docker logs -f lineblocs-user-app` to track file modification. If file content changed (*.js, *.html or *.css) but nothing happen on web browser, Please run `docker compose restart`
### Note
Please remember, lineblocs app integrated with lineblocs editor and libeblocs site. So make sure can access https://lineblocs.com and https://editor.lineblocs.com
11 changes: 9 additions & 2 deletions dev/docker-compose.full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ services:
user-app:
# use image from dockerhub. Using node 11.10.1
image: node:11.10.1
volumes:
- ..:/app
develop:
watch:
- action: sync+restart
path: ..
target: /app
## volumes:
## - ..:/app
logging: *default-logging
working_dir: /app
container_name: lineblocs-user-app
Expand All @@ -61,6 +66,8 @@ services:
"
environment:
- DEPLOYMENT_DOMAIN=app.${DEPLOYMENT_DOMAIN}
- VIRTUAL_HOST=app.${DEPLOYMENT_DOMAIN}
- VIRTUAL_PORT=9000
networks:
- lineblocs_internal_app
editor:
Expand Down
9 changes: 7 additions & 2 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ services:
user-app:
# use image from dockerhub. Using node 11.10.1
image: node:11.10.1
volumes:
- ..:/app
develop:
watch:
- action: sync+restart
path: ..
target: /app
## volumes:
## - ..:/app
logging: *default-logging
working_dir: /app
container_name: lineblocs-user-app
Expand Down
3 changes: 2 additions & 1 deletion shell_scripts/run_dev_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ gulp compress-js
rm -rf app/dist && cp -rf dist app/
cp ./app/index-prod.html ./app/index.html

gulp serve
#gulp serve
gulp watch