cap deploy -> does not deply my app, only a few dirs

7 views
Skip to first unread message

Adam PAPAI

unread,
Sep 18, 2010, 12:58:29 PM9/18/10
to Capistrano
I've got a strange issue.

My deploy.rb is shown below:

set :application, "serice"
set :domain, "mytld"
set :user, "myusername"
set :port, 22
set :repository, "/usr/home/#{user}/#{application}"
set :scm, :none
set :runner, user
set :use_sudo, false
set :deploy_via, :copy
set :deploy_to, "/usr/local/www/#{user}/#{application}"
set :group_writable, false
role :app, domain
role :web, domain
role :db, domain, :primary => true

cap deploy:check it says:

You appear to have all necessary dependencies installed

But with the command cap deploy, everything seems to be okay, but my
"source" is not deployed. Almost everything is missing, but the link
current is set up correctly, the releases/<timestamp> directory
exists, the basic directories exist as well (public, log, tmp) but
everything else is missing.

I checked the temporary created /tmp/<timestamp>.tar.gz and it
contains ALL of my code. It seems after the gunzip && tar xvf && rm
<timestamp>.tar my source code disappears from the extracted stuff..

What am I doing wrong?

Lee Hambley

unread,
Sep 19, 2010, 9:14:31 AM9/19/10
to capis...@googlegroups.com
set :scm, :none

^ Something it stopping the rsync command finding any of your code - deploying without source control is a really bad idea.

- lee


--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to capis...@googlegroups.com
* 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

Adam PAPAI

unread,
Sep 22, 2010, 2:17:07 AM9/22/10
to capis...@googlegroups.com
The problem was obvious:

I've tried to deploy my app on the same machine via ssh. So it packed the stuff to /tmp then it started to scp it to the same /tmp, so the tarball was corrupt. :)

But thanks anyway

Lee Hambley

unread,
Sep 22, 2010, 3:33:44 AM9/22/10
to capis...@googlegroups.com
Adam,

I really recommend grabbing Sun's (free) Virtualbox, and you can have a machine ready to test deploys in about 20 minutes, and at least this way it simulates what's really going on, I guess about 40% of all issues that come up with Cap are people trying to deploy to their own machine, and/or self-host their scm.

Glad you got it sorted.

- Lee

Adam PAPAI

unread,
Sep 22, 2010, 3:40:28 AM9/22/10
to capis...@googlegroups.com
Well i was running it under a FreeBSD jail, and I forgot to separate the development environment to a different jail :)

Now i separated them and everything works fine.

2010/9/22 Lee Hambley <lee.h...@gmail.com>

--
Reply all
Reply to author
Forward
0 new messages