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

Deploy path doesn't work for Git Deploy Method #123

Open
marcamillion opened this issue Aug 27, 2016 · 1 comment
Open

Deploy path doesn't work for Git Deploy Method #123

marcamillion opened this issue Aug 27, 2016 · 1 comment

Comments

@marcamillion
Copy link

What I would like to do, is within the branch I am deploying to, I want the static files to be deployed to a subfolder within the repo (i.e. not the root folder).

I tried doing this:

activate :deploy do |deploy|
  deploy.build_before = true
  deploy.deploy_method = :git
  deploy.branch = 'gh-pages-2'
  deploy.remote = 'github'
  deploy.path = '/blog'
end

But that doesn't work, it still deploys to the root directory. In fact, it doesn't even create the /blog folder I am looking for.

When I visit the config settings locally, these are the settings I see under :deploy:

:deploy
   :branch = "gh-pages"
   :build_before = true
   :clean = false
   :commit_message = nil
   :deploy_method = :git
   :flags = nil
   :host = nil
   :password = nil
   :path = "blog/"
   :port = 22
   :remote = "github"
   :strategy = :force_push
   :user = nil

This indicates to me that the path attribute is being set correctly.

I also tried doing deploy.path = 'blog' and that still doesn't work.

So how can I get this to deploy to \blog\ subfolder within my repo rather than the root directory?

@aalvrz
Copy link

aalvrz commented Feb 14, 2017

Did you find a solution for this?

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

2 participants