imathis / octopress

Octopress is an obsessively designed framework for Jekyll blogging. It’s easy to configure and easy to deploy. Sweet huh?
http://github.com/imathis/octopress
9.32k stars 2.62k forks source link

Missing _deploy folder #1344

Closed AlexVPopov closed 11 years ago

AlexVPopov commented 11 years ago

This is the repo of my Octopress blog on GitHub pages: https://github.com/AlexVPopov/alexvpopov.github.io

When I clone the repo on another machine, run rake generate and then rake deploy, I get this message:

Deploying branch to Github Pages

Pulling any updates from Github Pages

cd _deploy rake aborted! No such file or directory - _deploy

Tasks: TOP => deploy (See full trace by running task with --trace)

What should be done in this situation?

parkr commented 11 years ago

Try running rake gen_deploy. Or run mkdir _deploy before running the former. :)

AlexVPopov commented 11 years ago

I already tried to manually recreate the folder, but then when I deploy, my update does not get published to GitHub (even after waiting for half a day):

Generating Site with Jekyll

unchanged sass/screen.scss Configuration from /home/alex/Sites/myblog/_config.yml Building site: source -> public Successfully generated site: source -> public

Deploying branch to Github Pages

Pulling any updates from Github Pages

cd _deploy Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts. Already up-to-date. cd - rm -rf _deploy/index.html rm -rf _deploy/robots.txt rm -rf _deploy/assets rm -rf _deploy/favicon.png rm -rf _deploy/images rm -rf _deploy/blog rm -rf _deploy/about rm -rf _deploy/javascripts rm -rf _deploy/stylesheets rm -rf _deploy/sitemap.xml rm -rf _deploy/atom.xml

Copying public to _deploy

cp -r public/. _deploy cd _deploy The following paths are ignored by one of your .gitignore files: _deploy Use -f if you really want to add them. fatal: no files added

Commiting: Site updated at 2013-09-01 19:18:46 UTC

On branch source

Untracked files:

(use "git add ..." to include in what will be committed)

#

../source/_posts/2013-09-01-a-test-post.markdown

nothing added to commit but untracked files present (use "git add" to track)

Pushing generated _deploy website

Everything up-to-date

Github Pages deploy complete

cd -

On the other hand when I generate a test post from my Mac (the computer I initially set up my blog) and run rake gen_deploy the update gets published (almost immediately):

Generating Site with Jekyll

unchanged sass/screen.scss Configuration from /Users/Sopharma/Sites/myblog/_config.yml Building site: source -> public Successfully generated site: source -> public

Deploying branch to Github Pages

Pulling any updates from Github Pages

cd _deploy There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details

git pull

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream master origin/

cd - rm -rf _deploy/about rm -rf _deploy/assets rm -rf _deploy/atom.xml rm -rf _deploy/blog rm -rf _deploy/favicon.png rm -rf _deploy/images rm -rf _deploy/index.html rm -rf _deploy/javascripts rm -rf _deploy/robots.txt rm -rf _deploy/sitemap.xml rm -rf _deploy/stylesheets

Copying public to _deploy

cp -r public/. _deploy cd _deploy

Commiting: Site updated at 2013-09-01 19:21:55 UTC

[master a24fefb] Site updated at 2013-09-01 19:21:55 UTC 9 files changed, 383 insertions(+), 7 deletions(-) create mode 100644 blog/2013/09/01/another-test-from-my-mac/index.html

Pushing generated _deploy website

Counting objects: 41, done. Delta compression using up to 4 threads. Compressing objects: 100% (15/15), done. Writing objects: 100% (23/23), 2.32 KiB, done. Total 23 (delta 10), reused 0 (delta 0) To https://github.com/AlexVPopov/alexvpopov.github.io 2160648..a24fefb master -> master

Github Pages deploy complete

cd -

parkr commented 11 years ago

You can't just mkdir _deploy (I misspoke) - you have to git clone <deploy_repo> _deploy then run rake gen_deploy.

AlexVPopov commented 11 years ago

Thanks. That really fixed it!

justin808 commented 9 years ago

I get a similar message for a correct deploy. This looks like an error, but there is no error. The deployment still works. Any ideas?

## Deploying branch to Github Pages
## Pulling any updates from Github Pages
cd _deploy
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> master
maacl commented 9 years ago

I also get this error.

therealmarv commented 8 years ago

I also got that error. It seems rake deploy does a pull request before pushing. Because normally you don't edit the deployed changes directly and you're working alone on your blog (it will fail if you working with 2+ people on your blog) the push at the end will just work.

To remove this warning message:

Either do once:

cd _deploy
git branch --set-upstream-to=origin/master master

Or much better patch the Rakefile yourself. In my Rakefile it is in line 255:

  cd "#{deploy_dir}" do 
    system "git pull"
  end

and replace the system command with:

  cd "#{deploy_dir}" do 
    system "git pull origin #{deploy_branch}"
  end