ruby - How do I deploy octopress 3 to a subdirectory within an existing gh-pages site? -
i using octopress 3, , when run jekyll build, generates correct set of files (which includes static files, see list of files below):
$ cd _site :_site$ ls -a . cname assets google2d8.html index-alternative.html .. blog increase-revenue.html index.html note entire jekyll-generated blog safely stored within \blog\, how want it.
but once octopress deploy, overwrites entire folder (which overwrites existing static files), see listing below:
$ cd _site :_site$ ls -a . .. gemfile gemfile.lock css feed.xml index.html jekyll here _config.yml:
title: title email: some@email.com description: > # means ignore newlines until "baseurl:" description baseurl: "/blog" # subpath of site, e.g. /blog url: "http://example.com" # base hostname & protocol site twitter_username: myusername source: '../' # build settings markdown: kramdown theme: minima this _deploy.yml
method: git # how want deploy? git, rsync or s3. site_dir: _site # location of static site files. git_url: my_git_url git_branch: gh-pages-2 # git branch static site files commited note: once remove following line _config.yml: source: '../', jekyll build generates deploy folder octopress deploy does.
given new octopress 3 , existing static site hosted on gh-pages branch, how deploy blog subdirectory of existing gh-pages site?
you're not setting root dir correctly.
follow instruction: http://octopress.org/docs/deploying/subdir/
Comments
Post a Comment