Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I get octopress deploy to use the _config.yml that jekyll build uses? #70

Open
marcamillion opened this issue Aug 29, 2016 · 0 comments

Comments

@marcamillion
Copy link

I am using Octopress 3, and when I run jekyll build, it generates the correct set of files (which includes my static files, see list of files below):

      $ cd _site
:_site$ ls -a
.               CNAME               assets              google2d8.html  index-alternative.html
..              about               blog                increase-revenue.html       index.html

Note that my entire jekyll-generated blog is now safely stored within \blog\, which is how I want it.

But once I do octopress deploy, it basically overwrites this entire folder that overwrites my static files, see listing below:

      $ cd _site
:_site$ ls -a
.       ..      Gemfile     Gemfile.lock    about       css     feed.xml    index.html  jekyll

Here is my _config.yml:

title: My Title
email: [email protected]
description: > # this means to ignore newlines until "baseurl:"
     some description
baseurl: "/blog" # the subpath of your site, e.g. /blog
url: "http://example.com" # the base hostname & protocol for your site
twitter_username: myusername

source: '../'

# Build settings
markdown: kramdown
theme: minima

This is my _deploy.yml

method: git                 # How do you want to deploy? git, rsync or s3.
site_dir: _site             # Location of your static site files.
git_url: my_git_url

git_branch: gh-pages-2       # Git branch where static site files are commited

Note: Once I remove the following line from my _config.yml: source: '../', my jekyll build generates that deploy folder like octopress deploy does.

So I guess the real question is, once I customize _config.yml, how do I get octopress deploy to use that same jekyll _config.yml file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant