Open map7 opened 7 years ago
Still broken in 0.6
Just wanted to let you know that i had the same issue. Didn't look further in it as the workaround with the tmp
directory worked fine.
It worked fine by specifying the entire path:
# deploy.rb
set :db_dump_dir, -> { File.join(current_path, 'db') }
@map7 do you have _APP_PATH_/db
directory?
@itolosa can you check this branch https://github.com/numbata/capistrano-db-tasks/tree/issues/104/db_dump_dir_fix ?
@numbata I think the error here is to assume that ./
always points to the project directory, and I think is rancid to replace ./
to the current_path
. Maybe a Readme update would be great to avoid more confusions
This even doesn't seem a problem due to a change in THIS repository. I upgraded some unrelated gems in the bundle when I suddenly got this error. I wasn't able to restore the previous behavior because I only discovered this problem later in development. But at least reverting capistrano itself to the last known working version didn't help, neither did reverting sshkit, net-scp, or capistrano-db-tasks fix the problem. So something else must have changed behavior.
But the problem is probably still within THIS repo as it depends on some non-defined defaults when it shouldn't (e.g., the working directory).
When I run capistrano-db-tasks using capistrano 3.7.0 to pull my database with 'cap production db:pull --trace' I get the following error;
The work around is to set my db_dump_dir to "/tmp" instead of "./db" as it cannot find this. I would assume that this ./db directory should be relative to my Rails.root path on the production server but it doesn't seem to be working.