Skip to content

Commit ca4d81f

Browse files
committed
Minor fix for deploy
1 parent 773e3ea commit ca4d81f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: npm start & node server.js
1+
npm start & node server.js; wait

src/app/components/Login/Login.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ import TextField from '@mui/material/TextField';
55
import Button from '@mui/material/Button';
66
import Typography from "@mui/material/Typography";
77
import LoginNavbar from './LoginNavbar';
8+
import ip from 'ip';
89

910
import '../../styles/Login.css';
1011

12+
ip = require("ip");
13+
1114
const useStyles = makeStyles(theme => ({
1215
login: {
1316
display: 'flex',
@@ -22,7 +25,7 @@ const useStyles = makeStyles(theme => ({
2225
}));
2326

2427
async function loginUser(credentials) {
25-
return fetch('http://localhost:8080/login', {
28+
return fetch(`http://${ip.address()}:8080/login`, {
2629
method: 'POST',
2730
headers: {
2831
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)