sintaxi / harp

Static Web Server/Generator/Bundler
http://harpjs.com
5k stars 343 forks source link

Harp Server 0.17.0 doesn't render #452

Closed jdsimcoe closed 9 years ago

jdsimcoe commented 9 years ago

When I run harp server using Harp 0.17.0 doesn't render anything and returns this error:

screen shot 2015-05-27 at 4 01 20 pm

jdsimcoe commented 9 years ago

@sintaxi @kennethormandy Any ideas on this. Harp Server appears to be running in the Terminal:

------------
Harp v0.17.0 – Chloi Inc. 2012–2015
Your server is listening at http://localhost:9000/
Press Ctl+C to stop the server
------------

But nothing renders in the browser. Any ideas?

jdsimcoe commented 9 years ago

I've also re-installed Harp and it still happens.

kennethormandy commented 9 years ago

You could check if you have a port conflict? Or try running Harp on a different port:

harp server -p 9001
jdsimcoe commented 9 years ago

Dang, that's probably it:

harpjs.com git/master  284s
❯ lsof -i ':9000'
COMMAND PID     USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
php-fpm 335 jdsimcoe    6u  IPv4 0x1b1d1f066b6b5327      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 487 jdsimcoe    0u  IPv4 0x1b1d1f066b6b5327      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 488 jdsimcoe    0u  IPv4 0x1b1d1f066b6b5327      0t0  TCP localhost:cslistener (LISTEN)
php-fpm 489 jdsimcoe    0u  IPv4 0x1b1d1f066b6b5327      0t0  TCP localhost:cslistener (LISTEN)

Looks like php-fpm is running there. Don't know how to stop that. So weird. I know I can switch ports but PHP shouldn't be running there.

jdsimcoe commented 9 years ago

I killed them via sudo kill -9 but that was weird. Thanks @kennethormandy!

jdsimcoe commented 9 years ago

So @kennethormandy is there a config where I can set the Harp port to 9001 by default when I run harp server?

jdsimcoe commented 9 years ago

@kennethormandy Nevermind... thanks for all the help man.