axitkhurana / buster

Brute force static site generator for Ghost
MIT License
802 stars 139 forks source link

preview socket issue / css not loading #53

Open misterch0c opened 9 years ago

misterch0c commented 9 years ago
me@PC /cygdrive/c/Python27/Scripts
$ ./buster.exe  preview
Traceback (most recent call last):
  File "C:\Python27\Scripts\buster-script.py", line 9, in <module>
    load_entry_point('buster==0.1.3', 'console_scripts', 'buster')()
  File "C:\Python27\lib\site-packages\buster\buster.py", line 98, in main
    httpd = SocketServer.TCPServer(("", 9000), Handler)
  File "C:\Python27\lib\SocketServer.py", line 420, in __init__
    self.server_bind()
  File "C:\Python27\lib\SocketServer.py", line 434, in server_bind
    self.socket.bind(self.server_address)
  File "C:\Python27\lib\socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 10048] Une seule utilisation de chaque adresse de socket (p                       rotocole/adresse r▒seau/port) est habituellement autoris▒e

Proabably an issue on my side but I can't figure it out. Seems it can runs because it's already running however I don't see the preview on port 9000, just a "directory list" page (with no actual directory list) I can change the port in the buster.py file but how do I kill the existing connection? I don't see anything in my task manager. Also I have another issue which is that the generate page doesn't take account of my theme. I see my posts in the preview but it's raw

This is the error I get when I generate:

Traceback (most recent call last):
  File "C:\Python27\Scripts\buster-script.py", line 9, in <module>
    load_entry_point('buster==0.1.3', 'console_scripts', 'buster')()
  File "C:\Python27\lib\site-packages\buster\buster.py", line 59, in main
    os.rename(os.path.join(root, filename), os.path.join(root, newname))
WindowsError: [Error 123] La syntaxe du nom de fichier, de r▒pertoire ou de volume est incorrecte

Well after some digging I found the problem. My css files got funky names like screen.css@v=245ef745eb so removing everything after 'css' fixed it