문제

Running Codekit on OSX 10.8.4.

I can drag the file into a browser and see reloads take place on save. If I try to access files at localhost, the browser tells me it cannot connect.

In other words, this works:

file:///Users/me/Desktop/rubydev/susy/index.html

but this does not:

http://localhost/index.html

Any ideas about fixing this?

Edit: I also tried

localhost/
localhost/susy/index.html

Here's a screenshot of my codekit screen

and setup dialog

도움이 되었습니까?

해결책

CodeKit 1.x does not have a server built-in to it and, thus, will not serve pages. In the demo videos on the website, I'm running MAMP in the background, which is set to host a given folder at http://127.0.0.1:8888/ (which maps to "localhost").

You can use MAMP or you can set up a server with Node.js, Ruby or the Apache stack built-in to OS X itself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top