Skip to content

Commit

Permalink
Transition from localhost to local dev domain
Browse files Browse the repository at this point in the history
  • Loading branch information
stankolubomir committed Nov 3, 2023
1 parent e8bc53c commit 0f9fe50
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
20 changes: 17 additions & 3 deletions README-DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,33 @@ Arguments:
- `--build` - Build all images to run fresh docker containers
- `-d` - Run docker containers in the detached mode as background processes

## 4. (Optional) Run dev watch node server
### 3. Add local domain to hosts

Add this entry to your hosts:

127.0.0.1 notification-server.anzusystems.local

- Linux/Mac location:

`/etc/hosts`

- Windows location

`C:\Windows\System32\drivers\etc\hosts`

## 5. (Optional) Run dev watch node server

By default the `docker-compose` command will autostart node server `yarn dev` with logs in `var/log/node-server.log` file.

_Hint: You can disable node server autostart with variable `DOCKER_NODE_AUTOSTART=false` in `.env.docker.local`. You have to restart the docker-compose to apply the change._

### 4.a. (Optional) Stop all running node servers
### 5.a. (Optional) Stop all running node servers

You must stop the running node server with the command:

bin/run stop

### 4.b. (Optional) Start dev watch
### 5.b. (Optional) Start dev watch

Run `watch` node server (See below in the command description for more command line options):

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
context: .
dockerfile: docker/app/local/Dockerfile
environment:
- VIRTUAL_HOST=notification-server.anzusystems.localhost
- VIRTUAL_HOST=notification-server.anzusystems.local
- VIRTUAL_PORT=8080
env_file:
- .env.docker.dist
Expand All @@ -18,7 +18,7 @@ services:
ports:
- ${NGINX_PORT:-8490}:8080
- ${NGINX_UPSTREAM_WEBSOCKET_PORT:-3410}:3005
hostname: notification-server.anzusystems.localhost
hostname: notification-server.anzusystems.local
networks:
anzusystems_network:
aliases:
Expand Down

0 comments on commit 0f9fe50

Please sign in to comment.