TIP-맥OS
macOS에서 간단히 웹서버 구동하기
무한열정
2021. 4. 5. 18:52
다음 명령 한줄이면 가능하다.
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