fix([2fd88f42]): resolve port conflict to 8002
This commit is contained in:
@@ -4,7 +4,7 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
build: ./backend
|
build: ./backend
|
||||||
ports:
|
ports:
|
||||||
- "8001:8000"
|
- "8002:8000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./backend:/app
|
- ./backend:/app
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function App() {
|
|||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
setError(null);
|
setError(null);
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('http://localhost:8001/api/heatmap', {
|
const response = await axios.post('http://localhost:8002/api/heatmap', {
|
||||||
filters: selectedFilters,
|
filters: selectedFilters,
|
||||||
});
|
});
|
||||||
setHeatmapData(response.data);
|
setHeatmapData(response.data);
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const FileUpload: React.FC<FileUploadProps> = ({ onUploadSuccess, setIsLoading,
|
|||||||
setError(null);
|
setError(null);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await axios.post('http://localhost:8001/api/upload', formData, {
|
const response = await axios.post('http://localhost:8002/api/upload', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'multipart/form-data',
|
'Content-Type': 'multipart/form-data',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user