Giter Club home page Giter Club logo

buster's Introduction

Buster

Super simple, Totally awesome, Brute force static site generator for Ghost.

Start with a clean, no commits Github repository.

Generate Static Pages. Preview. Deploy to Github Pages.

Warning! This project is a hack. It's not official. But it works for me.

The interface

setup [--gh-repo=<repo-url>]

      Creates a GIT repository inside static/ directory.

generate [--domain=<local-address>]

      Generates static pages from locally running Ghost instance.

preview

      Preview what's generated on localhost:9000.

deploy

      Commits and deploys changes static files to Github repository.

add-domain <domain-name>

      Adds CNAME file with custom domain name as required by Github Pages.

Buster assumes you have static/ folder in your current directory (or creates one during setup command). You can specify custom directory path using [--dir=<path>] option to any of the above commands.

Don't forget to change your blog URL in config.js in Ghost.

The Installation

Installing Buster is easy with pip:

$ pip install buster

You'll then have the wonderful buster command available.

You could also clone the source and use the buster.py file directly.

Requirements

  • wget: Use brew install wget to install wget on your Mac. Available by default on most linux distributions.
  • git: Use brew install git to install git on your Mac. sudo apt-get install git on ubuntu/debian

The following python packages would be installed automatically when installed via pip:

  • docopt: Creates beautiful command line interfaces easily.
  • GitPython: Python interface for GIT.

Ghost. What?

Ghost is a beautifully designed, completely customisable and completely Open Source Blogging Platform. If you haven't tried it out yet, check it out. You'll love it.

The Ghost Foundation is not-for-profit organization funding open source software and trying to completely change the world of online publishing. Consider donating to Ghost.

Buster?

Inspired by THE GhostBusters.

Ghost Buster Movie

Ghost Buster Movie

Contributing

Checkout the existing issues or create a new one. Pull requests welcome!


Made with jugaad in Dilli.

buster's People

Contributors

axitkhurana avatar elyase avatar lasconic avatar shaunlebron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

buster's Issues

Error at line 55

Since I could not install buster through pip I tried cloning and running the following command:

buster.py setup --gh-repo=myusername.github.io

But then I get following error:

File "D:\path\buster.py", line 55
    print "Rename", filename, "=>", newname
                 ^
SyntaxError: invalid syntax

Create an RSS feed

/feed doesn't give me the RSS feed. I think this would be a welcome change!

Or does it already exist?

Strange Characters

Hi, I did not saw this issue on this repository so here it goes:

I'm having some troubles on my ghost blog with characters like accents and 'ñ' (my language has those).
On my local blog I see the post just fine, but when I generate my blog on buster those characters disappear.
For example:
Tecnología (means Technology) has this character "í", but on my remote blog the word is: Tecnología

I also did some research on the history of the code, because I don't remember this problem happening before (I used buster a few months ago) and I found that at commit d1b3d5f works fine, after that (at 02e9e48) the strange characters appear.

Any thoughts?

buster command not working

pip install buster
Requirement already satisfied (use --upgrade to upgrade): buster in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): GitPython==0.3.2.RC1 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): async==0.6.1 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): docopt==0.6.1 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): gitdb==0.5.4 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): smmap==0.8.2 in /usr/local/lib/python2.7/site-packages (from buster)
Cleaning up...
bash-4.2$ buster --version
bash: buster: command not found

Can not run buster on Windows

Hi, use Windows 10 64bit
i install success buster with comand pip install buster but when i use buster setup. My system cant find buster command. I tryed restart my computer but it not work.
I need some solutions for this.
Thanks your help so much.

Missing CSS

Actual one looks like this:

actual

Generated one looks like this:
generated

I am previewing with buster preview command locally.

no doctype or html element

using buster generate or buster preview the files don't have a doctype or an html element:

Ghost output

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />

buster generate

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

sitemap is missing

sitemap.xml is missing from generated content.

currently I'm using this workaround to generate it:

npm install -g git://github.com/tmcw/sitemap-static.git 
cd static; sitemap-static --prefix=https://yourblogdomain.com | sed 's/index\.html//g' > sitemap.xml; cd -

@v tag added to all stylesheets and js files

when I do the generate the css files and js files get automatically appended with @v tag followed by some random strings... This works fine in local browser but the same is not while using in Github pages... here is the link avinoth.github.io - In the first page's css I have removed the "@v tag" but go to other pages or the individual post page itself.....

Missing dependency git

There seems to be a missing dependency, as the 'git' command needs to be available on the system. If it does not exist it fails with a Python error, file or directory not found.

I think it's best to catch this error and list git as a dependency on the install page.

If I may make a suggestion, don't just mention homebrew since I believe that is an OSX only package manager.

fixlinks error?

I get this error when I try to generate the static version.

Traceback (most recent call last):
  File "/usr/local/bin/buster", line 9, in <module>
    load_entry_point('buster==0.1.3', 'console_scripts', 'buster')()
  File "/Library/Python/2.7/site-packages/buster/buster.py", line 90, in main
    newtext = fixLinks(filetext, parser)
  File "/Library/Python/2.7/site-packages/buster/buster.py", line 68, in fixLinks
    if not abs_url_regex.search(href):
TypeError: expected string or buffer

Any idea?

Buster does not copy assets into static folder

The issue I am having is: Buster is not copying the relevant asset files from the local server to the static folder -- resulting that the static version has no CSS and JS. Below is how it looks.

Here is how it looks, after I uploaded it to GitHub.[Broken!]

(Note: I have added the assets to the page just through copying the assets from the folder, but it still does not work).


There are various ways in which you can achieve this, but I used this guide. Some alternatives of the guide are listed below;

  1. Alternative 1 - Mark Daws
  2. Alternative 2 - Jack Pearce
  3. Alternative 3 - Talal Anwar

All of them go through a similar method of achieving the final result.


My system:

  * Windows 8.1
  * 8 GB RAM
  * Administrative account
  * Using Git Bash (Wget is installed)
  * No errors for in the npm console whilst Buster is brute-forcing the files

Hope that is enough information to solve it.

Cheers,

Doesn't work with bare IP address with ports

Normal Ghost installation works on http://127.0.0.1:2368 . wget --recursive --domains .. doesn't capture all pages.

Workarounds for now. (Any one)

  1. Setup Ghost using Ghost Vagrant. buster generate will work in this case.
  2. Setup Nginx. See ONLY step 3 of this tutorial and use localhost as your-domain-name.
  3. Listen on port 80 using sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 2368. buster generate --domain=127.0.0.1 should work in the above cases.

Does this work on Macs?

Whenever I try to install it on my mac, I get the error:

Command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-jewwwE-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/lxml
Storing debug log for failure in /Users/blank/.pip/pip.log

Doesnt Support Static Pages

Hi @axitkhurana
I created a static page over Ghost titled say about me but no such directory is generated by buster as a static file. Am I missing something? If no, ! It will be cool to have support for static pages as an enhancement.
Cheers!

fixing links for static pages

Hi,

I am running a Buster 0.1.3 on OS X Maverick.

Problem:
Buster's fixLinks function does not seem to correctly convert a relative link of a static page.

Example:
I have a static page at "/project-portfolio".

When previewed or deployed by Buster, Buster converts "/project-portfolio" to "/project-portfolio.1". Notice the trailing integer with a dot.

Clarification

  1. This problem does not occur, when running locally at 2368 with Ghost.
  2. The page '/project-portfolio' DOES exist, when previewed or deployed by Buster.

Log
Here's what I get when running "buster generate"

fixing links in /Users/dh/Dropbox/master_personal/code_dh/scripts/blogs/blog_kr/static/index.html
...
project-portfolio.2 => project-portfolio.2
...

Trouble Installing Buster

I've tried to install several times but always get this error (I'm running Mac OS X 10.10.3, the latest build with pip 6.1.1 and python 2.7) I've also tried running it with:
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
as has been used for some other Clang failures before...

anyways, this is the error I get:

bk: pip install buster
Collecting buster
Using cached buster-0.1.3.tar.gz
Requirement already satisfied (use --upgrade to upgrade): GitPython==0.3.2.RC1 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): async==0.6.1 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): docopt==0.6.1 in /usr/local/lib/python2.7/site-packages (from buster)
Requirement already satisfied (use --upgrade to upgrade): gitdb==0.5.4 in /usr/local/lib/python2.7/site-packages (from buster)
Collecting pyquery==1.2.8 (from buster)
Using cached pyquery-1.2.8.zip
Requirement already satisfied (use --upgrade to upgrade): smmap==0.8.2 in /usr/local/lib/python2.7/site-packages (from buster)
Collecting lxml>=2.1 (from pyquery==1.2.8->buster)
Using cached lxml-3.4.2.tar.gz
Collecting cssselect (from pyquery==1.2.8->buster)
Using cached cssselect-0.9.1.tar.gz
Installing collected packages: lxml, cssselect, pyquery, buster
Running setup.py install for lxml
Complete output from command /usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;file='/private/var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-build-btoKEQ/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-BJUuAg-record/install-record.txt --single-version-externally-managed --compile:
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
warnings.warn(msg)
Building lxml version 3.4.2.
Building without Cython.
Using build configuration of libxslt 1.1.28
running install
running build
running build_py
creating build
creating build/lib.macosx-10.10-x86_64-2.7
creating build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/init.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/_elementpath.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/builder.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/cssselect.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/doctestcompare.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/ElementInclude.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/pyclasslookup.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/sax.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/usedoctest.py -> build/lib.macosx-10.10-x86_64-2.7/lxml
creating build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/init.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
creating build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/init.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/_diffcommand.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/_html5builder.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/_setmixin.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/builder.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/clean.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/defs.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/diff.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/ElementSoup.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/formfill.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/html5parser.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/soupparser.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
copying src/lxml/html/usedoctest.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/html
creating build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron
copying src/lxml/isoschematron/init.py -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron
copying src/lxml/lxml.etree.h -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/lxml.etree_api.h -> build/lib.macosx-10.10-x86_64-2.7/lxml
copying src/lxml/includes/c14n.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/config.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/dtdvalid.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/etreepublic.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/htmlparser.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/relaxng.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/schematron.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/tree.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/uri.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/xinclude.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/xmlerror.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/xmlparser.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/xmlschema.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/xpath.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/xslt.pxd -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/etree_defs.h -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
copying src/lxml/includes/lxml-version.h -> build/lib.macosx-10.10-x86_64-2.7/lxml/includes
creating build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources
creating build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/rng
copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/rng
creating build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl
copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl
creating build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.macosx-10.10-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
running build_ext
building 'lxml.etree' extension
creating build/temp.macosx-10.10-x86_64-2.7
creating build/temp.macosx-10.10-x86_64-2.7/src
creating build/temp.macosx-10.10-x86_64-2.7/src/lxml
clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wno-error=unused-command-line-argument-hard-error-in-future -I/usr/include/libxml2 -I/private/var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-build-btoKEQ/lxml/src/lxml/includes -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.10-x86_64-2.7/src/lxml/lxml.etree.o -w -flat_namespace
In file included from src/lxml/lxml.etree.c:239:
/private/var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-build-btoKEQ/lxml/src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
^
1 error generated.
error: command 'clang' failed with exit status 1

----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-build-btoKEQ/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-BJUuAg-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/0c/gp7yj5v16clg6k5x_4wn__wc0000gn/T/pip-build-btoKEQ/lxml

Generated CSS wrong name

When I run buster generate, it create all the needed files, but the "screen.css" gets saved as screen.css?v=e1a4208fa8 and everytime I run buster generateI must change the name of that css file.

How to generate continuously after first 'buster generate'?

I want to use Buster to publish to Github Pages but after the first 'buster generate', how can I use buster to add another post to /static/ without having to manually create a directory, index.html, and replace my markdown with HTML?

RSS link broken

I just discovered Buster, and think it's amazing. I'm very eager to use this as blogging platform. I'm noticing that the RSS subscription link works on my local installation, but gives me a 404 on the live static version. Example: https://kaicataldo.github.io/

Static pages support broken?

I know that buster doesn't support static pages. I did the trick mentioned in #7 and it generates the page, but without the index.html string. When I try to open the page in the browser it doesn't work.

after running pip install & setup/generated.. buster deploy doesn't work.

buster deploy outputs...

Traceback (most recent call last):
File "/usr/bin/buster", line 9, in
load_entry_point('buster==0.1.2', 'console_scripts', 'buster')()
File "/usr/lib/python2.6/site-packages/buster/buster.py", line 109, in main
repo.index.commit('Blog update at {}'.format(current_time))
ValueError: zero length field name in format

If I comment out the line #109, it works.

preview socket issue / css not loading

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

Windows bug: unable to run buster setup

I installed buster on Windows 7 64 bit with Python 2.7.9. But when I try to setup buster with my GitHub repository link, it fails. Below is the stacktrace:

Traceback (most recent call last):
File ".\buster.py", line 201, in
main()
File ".\buster.py", line 161, in main
repo = Repo.init(static_path)
File "C:\Python27\lib\site-packages\git\repo\base.py", line 656, in init
output = git.init(*_kwargs)
File "C:\Python27\lib\site-packages\git\cmd.py", line 227, in
return lambda *args, *_kwargs: self._call_process(name, _args, *_kwargs)
File "C:\Python27\lib\site-packages\git\cmd.py", line 456, in _call_process
return self.execute(call, *__kwargs)
File "C:\Python27\lib\site-packages\git\cmd.py", line 335, in execute
*_subprocess_kwargs
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

I have tried to run the python file directly, I get the same error. I also tried this fork - https://github.com/Misiur/buster, still does not work.

Buster generate command doesn't generate last page

Example, I have 7 pages in total. But buster didn't generate the last page directory, eg. page/7, other pages seems fine.

How do I capture this error? Log generated by buster generate doesn't seem to have any problem.

buster setup

When I try to setup buster, I receive always the same message:
1
2

I have tried in Windows 7 and in Ubuntu 14.04

Cannot pip install buster on Windows

I am left with this error on my Windows 8.1 machine:

Command python setup.py egg_info failed with error code 1 in C:\Users\Ibrahim\AppData\Local\Temp\pip_build_Ibrahim\async

When I run pip install buster

Folder path with spaces causes generate to fail

It seems as though a folder path that includes space, like C:\Users\Kevin Weeks\... causes generate to fail.

The error I get is:

Cannot write to C:/Users/Kevin/index.html (No such file or directory)

Buster doesn't generate rss anymore

with latest changes in Ghost 0.6 series to rss, buster stopped generating rss feeds for new post. Would be very grateful to get this fixed. If you don't have time (as I don't) then I will be happy in my free time to patch this out. Cheers, and thanks for good work.

Problems with wget

My instance of Ghost is running latest 0.5. There was no mention of installing wget for Windows. Anyway, I did that and after running buster generate --domain=http://localhost:2368 I get the following error:

SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files (x86)\GnuWin32/etc/wgetrc
--2014-08-18 12:49:23--  http://%5C--recursive/
Resolving \--recursive... failed: No data record of requested type.
wget: unable to resolve host address `\--recursive'
--2014-08-18 12:49:25--  http://%5C--convert-links/
Resolving \--convert-links... failed: No data record of requested type.
wget: unable to resolve host address `\--convert-links'
--2014-08-18 12:49:25--  http://%5C--page-requisites/
Resolving \--page-requisites... failed: No data record of requested type.
wget: unable to resolve host address `\--page-requisites'
--2014-08-18 12:49:25--  http://%5C--no-parent/
Resolving \--no-parent... failed: No data record of requested type.
wget: unable to resolve host address `\--no-parent'
--2014-08-18 12:49:27--  http://%5C--directory-prefix/
Resolving \--directory-prefix... failed: No data record of requested type.
wget: unable to resolve host address `\--directory-prefix'
--2014-08-18 12:49:27--  ftp://c/%5Cstatic
           => `%5Cstatic'
Resolving c... failed: No data record of requested type.
wget: unable to resolve host address `c'
--2014-08-18 12:49:30--  http://%5C--no-host-directories/
Resolving \--no-host-directories... failed: No data record of requested type.
wget: unable to resolve host address `\--no-host-directories'
\http://localhost:2368: Unsupported scheme.

unable to deploy if 2 factor auth is enabled on github

failed with following

Traceback (most recent call last):
  File "/usr/local/bin/buster", line 9, in <module>
    load_entry_point('buster==0.1.3', 'console_scripts', 'buster')()
  File "/usr/local/lib/python2.7/site-packages/buster/buster.py", line 149, in main
    repo.active_branch.name])
  File "/usr/local/lib/python2.7/site-packages/git/cmd.py", line 377, in execute
    raise GitCommandError(command, status, stderr_value)
git.exc.GitCommandError: 'git push -u origin master' returned exit status 128: remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/yangcheng/yangcheng.github.io/'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.