Skip to content

Commit

Permalink
update dev
Browse files Browse the repository at this point in the history
  • Loading branch information
WisdomSky committed Sep 7, 2023
1 parent f2e3621 commit afd503f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 6 additions & 2 deletions dev/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Running
# Running dev

sh up.sh

Once inside the the container, you have to manually build and run the app:

cd /var/app/frontend && npm install && npm run build
cd /var/app/backend && npm install
node app.js
node app.js

During development, you can set the module bundler of the frontend app to watch for changes using `npm run watch`:

cd /var/app/frontend && npm install && npm run watch
5 changes: 1 addition & 4 deletions dev/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@ services:
build: .
image: cloudflared-web
container_name: cloudflared-web
network_mode: host
environment:
WEBUI_PORT: 1111
ports:
- target: 1111
published: 1111
protocol: tcp
volumes:
- ./config:/config
- ../app/backend:/var/app/backend
Expand Down

0 comments on commit afd503f

Please sign in to comment.