Merge pull request 'refactor: refs #6656 set proxy for test environment' (#15) from 6656-fixProxy into test
gitea/worker-time-control/pipeline/head This commit looks good Details

Reviewed-on: #15
This commit is contained in:
Jorge Penadés 2024-01-09 09:20:47 +00:00
commit d27fc98b8b
5 changed files with 189 additions and 530 deletions

View File

@ -1 +1,2 @@
TARGET='url del servidor local'
PORT='puerto de acceso'

View File

@ -30,3 +30,5 @@ COPY \
index.html \
clockIn.html \
./
CMD ["npm", "start"]

706
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,13 +16,11 @@
"npm": ">=8"
},
"dependencies": {
"express": "^4.18.2",
"http-proxy-middleware": "^2.0.6",
"dotenv": "^16.3.1",
"fastclick": "^1.0.6",
"jquery": "^3.7.0",
"sweetalert2": "11.10.1"
},
"devDependencies": {
"express": "^4.18.2",
"http-proxy-middleware": "^2.0.6"
}
}

View File

@ -12,7 +12,7 @@ const apiProxy = createProxyMiddleware('/api', {
app.use('/api', apiProxy);
app.use('/', express.static(__dirname));
const port = 4000;
const port = process.env.PORT;
app.listen(port, () => {
console.log(`Server running on port: ${port}`);
});