다음 명령 한줄이면 가능하다.
python -m SimpleHTTPServer 8000 |
lifehacker.com/start-a-simple-web-server-from-any-directory-on-your-ma-496425450
Start a Simple Web Server from Any Directory on Your Mac
OS X: You need only one tiny command to start a web server from any directory through OS X's terminal. If you've got a web site lying around and need to test it out, this is possibly the fastest way to make that happen.
lifehacker.com
* npm을 사용하여 serve를 사용한다.
serve 패키지 설치
npm install serve |
웹서버 구동하기 (build 디렉토리 기반으로 실행)
npx serve -s build |
* npm을 사용하여 http-server , live-server 를 사용하는 방법도 있다.
kamang-it.tistory.com/entry/Packagehttp-server와-live-server
[Package]http-server와 live-server
굳이 nodejs가 아니더라도 가끔씩 웹을 테스트해야하는 순간이 온다. 이 때 간단하게 웹을 사용할 수있는 것이 두 종료가 있다. 하나는 http-server이고 live-server도 있다. 둘중 무엇을 사용해도 크게
kamang-it.tistory.com
'TIP-맥OS' 카테고리의 다른 글
macOS에서 FileZilla FTP접속시 EUC-KR설정시 한글 깨짐 또는 업로드 오류 (0) | 2021.04.13 |
---|---|
macOS Zshell 설치 및 참고자료 (0) | 2021.04.07 |
macOS에서 설치된 JDK 경로 모두 확인 및 JDK버전 변경하기 (0) | 2021.04.01 |
macOS에서 한글풀어쓰기(NFC,NFD) 모아쓰기처리 javascript에서 처리하기 (0) | 2021.01.07 |
macOS에서 한글 자소분리 및 풀어쓰기(NFC,NFD)된 파일을 모아쓰기 처리와 FileZilla FTP 문제 해결 (0) | 2020.12.24 |