question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How do I run http-server in the background

See original GitHub issue

Running:

http-server . &

Doesn’t seem to work. It also doesn’t play nice with forever or supervisor.

Any other suggestions?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

25reactions
ksloancommented, Mar 31, 2016
http-server . > http.log 2>&1 &
4reactions
derhuerstcommented, Oct 7, 2015

For me, http-server . & works. I just have to press enter once more to get my prompt back. 😛

I’m having trouble installing forever right now, but i will let you know if it works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running http-server in background from an npm script
You can run a process in background by appending & in the end. And then use the postscript hook that npm offers us,...
Read more >
[HELP] How to run python http.server in the background on ...
[HELP] How to run python http.server in the background on Windows 10. EDIT: All sorted out in record time. Thanks to those who...
Read more >
Run HTTP server in background during tests - CircleCI Discuss
The way I run tests locally is normally npm start and then, once the server is running, in a different terminal tab I...
Read more >
Runing Node JS Server In Background - Iulian Popa
Install Node forever package. · After installation, run npm list command to see the forever package installation path. · Start node js HTTP...
Read more >
How To Make an HTTP Server in Go | DigitalOcean
Run your server using the go run command: go run main.go. Copy. Your program will continue running again, so ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found