I was revising your deploy.rb and I don't know why it happened.
My guess (if the problem were in migrations tasks) is something wrong with
your release_path variable , but it don't really make sense to me. I say
it because original migrations tasks do some checks to choose a directory
or another for deploying:
# Description task omitted
task :migrate, :roles => :db, :only => { :primary => true } do
rake = fetch(:rake, "rake")
rails_env = fetch(:rails_env, "production")
migrate_env = fetch(:migrate_env, "")
migrate_target = fetch(:migrate_target, :latest)
directory = case migrate_target.to_sym
when :current then current_path
when :latest then latest_release
else raise ArgumentError, "unknown migration target
#{migrate_target.inspect}"
end
run "cd #{directory} && #{rake} RAILS_ENV=#{rails_env} #{migrate_env}
db:migrate"
end
Regards
2012/9/18 Jeremy Rottman <[email protected]>
> Rafa,
>
> I am able to run this command on the server. I did eventually figure this
> issue out. For some reason it was due to the fact that I was overriding the
> deploy:migrations and deploy:migrate tasks.
>
> On Monday, September 17, 2012 10:18:13 PM UTC-7, Rafa García wrote:
>
>> Hi Jeremy,
>>
>> Could you execute this command, by hand?
>>
>> git ls-remote [email protected]:XXXXXXXXXX/**XXXXXXXXXXX.git unicorn_test
>>
>>
>> Check the url, just to be sure it's a repo and not a workout copy.
>>
>> Regards
>>
>> 2012/9/18 Jeremy Rottman <[email protected]>
>>
>>> I am in the process of doing some final dry runs of my deployments to
>>> ec2 and I have run into an issue. Normally my deployments go very smoothly
>>> and this is the first time I have ever had this issue.
>>>
>>> When I attempt to deploy from git I get the error detailed in this gist:
>>> https://gist.github.com/**3740162 <https://gist.github.com/3740162>
>>>
>>> Here are the details of my environment I am deploying from:
>>>
>>> Ruby: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
>>> Capistrano: Capistrano v2.12.0
>>> Deploy/Cap File:
>>> https://gist.github.com/**3740212<https://gist.github.com/3740212>
>>>
>>> --
>>> * You received this message because you are subscribed to the Google
>>> Groups "Capistrano" group.
>>> * To post to this group, send email to [email protected]
>>> * To unsubscribe from this group, send email to capistrano+...@**
>>> googlegroups.com For more options, visit this group at
>>> http://groups.google.com/**group/capistrano?hl=en<http://groups.google.com/group/capistrano?hl=en>
>>
>>
>> --
> * You received this message because you are subscribed to the Google
> Groups "Capistrano" group.
> * To post to this group, send email to [email protected]
> * To unsubscribe from this group, send email to
> [email protected] For more options, visit this
> group at http://groups.google.com/group/capistrano?hl=en
>
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en