-
Notifications
You must be signed in to change notification settings - Fork 489
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
git clone '.' path already exists #190
Comments
Would you be able to include your entire deploy.rb file? thanks. |
Yes, sure and thanks. #require 'mina/bundler' Basic settings:set :domain, 'r4564564564564.online.de' set :shared_paths, ['wp-content/uploads'] task :environment do If you're using rbenv, use this to load the rbenv environment.Be sure to commit your .rbenv-version to your repository.invoke :'rbenv:load'For those using RVM, use this to load an RVM version@gemset.invoke :'rvm:use[ruby-1.9.3-p125@default]'end task :setup => :environment do desc "Deploys the current version to the server." desc "Rollback to previous verison." |
No tiny advice? |
Same problem here. Here's
|
Hey I´m new to mina but I have an problem with the deploy, especially with the git: clone command and find no solution at the www.
After mian setup I received this:
-----> Cloning the Git repository
$ git clone "https://[email protected]/user/www.mydomain.com.git" "development/newproject/scm" --bare
Cloning into bare repository development/newproject/scm...
Password:
remote: Counting objects: 1512, done.
remote: Compressing objects: 100% (1318/1318), done.
remote: Total 1512 (delta 206), reused 1373 (delta 150)
Receiving objects: 100% (1512/1512), 10.04 MiB | 3.67 MiB/s, done.
Resolving deltas: 100% (206/206), done.
-----> Using git branch 'master'
$ git clone "development/newproject/scm" . --recursive --branch "master"
fatal: destination path '.' already exists and is not an empty directory.
! ERROR: Deploy failed.
-----> Cleaning up build
$ rm -rf "$build_path"
Unlinking current
$ rm -f "deploy.lock"
OK
Connection to s4454454545.online.de closed.
! Command failed.
Failed with status 4864
Sure the folder isn´t empty cause mina creates the shared and releases before.
So how can I handle this to make the setup happend?
Here my mina deploy:
desc "Deploys the current version to the server."
task :deploy => :environment do
deploy do
# Put thingiths that will set up an empty directory into a fully set-up
# instance of your project.
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
end
end
The text was updated successfully, but these errors were encountered: