feat: 포트 충돌 방지 - 자동 포트 탐색 및 상대 경로 적용

백엔드 변경사항:
- fMain.cs: 포트 7979~8000 범위에서 자동 탐색 및 fallback 기능 추가
- 성공한 포트를 Pub.WebServiceURL에 자동 저장
- 포트 충돌 시 자동으로 다음 포트 시도

프론트엔드 변경사항:
- login.html: 하드코딩 URL 3곳을 상대 경로로 변경
- Common.html: 하드코딩 URL 4곳을 상대 경로로 변경
- DashBoard/index.html: 하드코딩 URL 10곳을 상대 경로로 변경

효과:
- 포트 충돌 시 사용자 개입 없이 자동 해결
- 포트 변경에 무관하게 프론트엔드 자동 동작
- 다양한 환경에서 안정적인 서비스 제공

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
backuppc
2025-11-03 11:02:28 +09:00
parent 3f3a2834df
commit a966b4a6ab
4 changed files with 62 additions and 37 deletions

View File

@@ -448,8 +448,8 @@
// 코드그룹 목록 로드
function loadGroups() {
showLoading();
fetch('http://127.0.0.1:7979/Common/GetGroups')
fetch('/Common/GetGroups')
.then(response => response.json())
.then(data => {
groupData = data || [];
@@ -517,8 +517,8 @@
// 특정 그룹의 데이터 로드
function loadDataByGroup(grp) {
showLoading();
let url = 'http://127.0.0.1:7979/Common/GetList';
let url = '/Common/GetList';
if (grp) {
url += '?grp=' + encodeURIComponent(grp);
}
@@ -642,10 +642,10 @@
// 삭제 실행
function confirmDelete() {
if (!deleteTargetIdx) return;
showLoading();
fetch('http://127.0.0.1:7979/Common/Delete', {
fetch('/Common/Delete', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -704,10 +704,10 @@
svalue2: document.getElementById('editSvalue2').value,
memo: document.getElementById('editMemo').value
};
showLoading();
fetch('http://127.0.0.1:7979/Common/Save', {
fetch('/Common/Save', {
method: 'POST',
headers: {
'Content-Type': 'application/json',