Skip to content

Commit

Permalink
atualizacao estrutura
Browse files Browse the repository at this point in the history
  • Loading branch information
regis-amaral committed Aug 9, 2023
1 parent 7f6281b commit 2f4ae28
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 77 deletions.
7 changes: 0 additions & 7 deletions server/.ebextensions/create-dynamodb-table.config

This file was deleted.

31 changes: 0 additions & 31 deletions server/.ebextensions/create-sns-topic.config

This file was deleted.

12 changes: 0 additions & 12 deletions server/.ebextensions/options.config

This file was deleted.

20 changes: 0 additions & 20 deletions server/.elasticbeanstalk/config.yml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 0 additions & 6 deletions server/package.json → server/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
"version": "0.0.1",
"private": true,
"dependencies": {
"aws-sdk": "latest",
"body-parser": "latest",
"dotenv": "latest",
"ejs": "latest",
"express": "latest",
"http": "latest",
"socket.io": "latest"
},
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion server/server.js → server/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ if (cluster.isMaster) {
cors: {
origin: [
'http://localhost',
'https://ravinproject.github.io/'
'https://ravinproject.github.io/',
'http://vps48753.publiccloud.com.br',
'https://vps48753.publiccloud.com.br'
],
methods: ["GET", "POST"]
}
Expand Down
File renamed without changes.
11 changes: 11 additions & 0 deletions server/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'
services:
node-app:
image: node:14 # Use a versão desejada do Node.js
container_name: ravin-websocket
working_dir: /app
volumes:
- ./app:/app # Mapeia o diretório local "app" para o diretório dentro do contêiner "/app"
ports:
- "3000:3000" # Mapeia a porta 3000 do contêiner para a porta 3000 do host
command: npm start # Comando para iniciar o servidor Node.js

0 comments on commit 2f4ae28

Please sign in to comment.