Skip to content

Commit

Permalink
Another WSS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gesugao-san committed Feb 13, 2024
1 parent f9f3973 commit 0749673
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"image": "gesugaosan/proxima.fun",
"containerName": "proxima.fun",
"ports": [{
"containerPort": 80,
"hostPort": 80,
"containerPort": 8080,
"hostPort": 8080,
"protocol": "tcp",
}],
"env": {
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN npm install --production --silent
COPY . .

### Сообщаем Docker'у, что для работы нам нужен порт.
EXPOSE 80:80
EXPOSE 8080:8080

### Устанавливаем владельцем node для рабочего каталога рекурсивно.
RUN chown -R node /usr/src/app
Expand Down
2 changes: 1 addition & 1 deletion README.Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
When you're ready, start your application by running:
`docker compose up --build`.

Your application will be available at http://localhost:80.
Your application will be available at http://localhost:8080.

### Deploying your application to the cloud

Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ services:
NODE_ENV: production
WDS_SOCKET_PORT: 443
ports:
- target: 80
published: 80
- target: 8080
published: 8080
mode: host

# The commented out section below is an example of how to define a PostgreSQL
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview",
"dev": "vite",
"docker-build": "docker build . -t \"gesugaosan/proxima.fun\"",
"docker-run": "docker run -p 80:80/tcp \"gesugaosan/proxima.fun\""
"docker-run": "docker run -p 8080:8080/tcp \"gesugaosan/proxima.fun\""
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
Expand Down
4 changes: 2 additions & 2 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default defineConfig({

server: {
host: true,
port: 80,
https: true,
port: 8080,
https: false,
strictPort: true,
hmr: {
host: true,
Expand Down

0 comments on commit 0749673

Please sign in to comment.