Does IntelliJ have an internal web server to serve static content of a web application?

前端 未结 7 2542
悲&欢浪女
悲&欢浪女 2021-02-19 16:28

Right now, the directory of my module is defined as an IIS virtual directory and IIS serves the files.

I was wondering whether IntelliJ has an internal web server, whic

7条回答
  •  难免孤独
    2021-02-19 17:09

    Here's another super simple option, install Python: http://www.python.org/getit/

    Then open a shell prompt, navigate to your root web folder (e.g. public) and run python -m SimpleHTTPServer - This starts an HTTP Service on port 8000.

    Further reading should you need it: http://www.linuxjournal.com/content/tech-tip-really-simple-http-server-python

    I've got mine running on Windows 7 but the above article still applies.

提交回复
热议问题