Anyone using Capistrano with darcs? I'm trying to deploy to a new server and not having any luck. I've copied the darcs repository to a directory on the server. When cap is trying to get the list of patches from the repository, it can't find it, so darcs fails with the error "Not a repository."
Here's my deploy.rb:
set :application, "myapp" set :repository, "/home/myapp/darcs/myapp"
# If you aren't deploying to /u/apps/#{application} on the target # servers (which is the default), you can specify the actual location # via the :deploy_to variable: set :deploy_to, "/home/myapp/deploy"
# If you aren't using Subversion to manage your source code, specify # your SCM below: set :scm, :darcs set :scm_verbose, false set :deploy_via, :checkout
set :user, 'myapp'
role :app, "myapp.com" role :web, "myapp.com" role :db, "myapp.com", :primary => true
When using the :checkout deployment strategy, the repository must be accessible by both the remote host(s) and the local host (since it just does a checkout operation on each target host).
If that's not an option, you might want to consider using the :copy strategy, instead.
- Jamis
On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:
> Anyone using Capistrano with darcs? I'm trying to deploy to a new > server and not having any luck. > I've copied the darcs repository to a directory on the server. When > cap is trying to get the list of patches from the repository, it can't > find it, so darcs fails with the error "Not a repository."
> Here's my deploy.rb:
> set :application, "myapp" > set :repository, "/home/myapp/darcs/myapp"
> # If you aren't deploying to /u/apps/#{application} on the target > # servers (which is the default), you can specify the actual > location > # via the :deploy_to variable: > set :deploy_to, "/home/myapp/deploy"
> # If you aren't using Subversion to manage your source code, > specify > # your SCM below: > set :scm, :darcs > set :scm_verbose, false > set :deploy_via, :checkout
> set :user, 'myapp'
> role :app, "myapp.com" > role :web, "myapp.com" > role :db, "myapp.com", :primary => true
Thanks, Jamis. Changing to ":checkout, :copy" gets the code from my local darcs repository on my development machine, which works fine for me.
Another problem, however: cap freezes while uploading the gzipped copy of the code. The last thing cap prints to the screen is:
** uploading data to mysite.com:/tmp/20070816195756.tar.gz
Then it does nothing until I kill it. If I log in to the server, there's a file at /tmp/20070816195756.tar.gz with zero bytes. Could this be some obscure bug in Ruby's SFTP library?
Thanks, -Stuart
On Aug 16, 1:43 pm, "Jamis Buck" <ja...@37signals.com> wrote:
> When using the :checkout deployment strategy, the repository must be > accessible by both the remote host(s) and the local host (since it > just does a checkout operation on each target host).
> If that's not an option, you might want to consider using the :copy > strategy, instead.
> - Jamis
> On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:
> > Hello all,
> > Anyone using Capistrano with darcs? I'm trying to deploy to a new > > server and not having any luck. > > I've copied the darcs repository to a directory on the server. When > > cap is trying to get the list of patches from the repository, it can't > > find it, so darcs fails with the error "Not a repository."
> > Here's my deploy.rb:
> > set :application, "myapp" > > set :repository, "/home/myapp/darcs/myapp"
> > # If you aren't deploying to /u/apps/#{application} on the target > > # servers (which is the default), you can specify the actual > > location > > # via the :deploy_to variable: > > set :deploy_to, "/home/myapp/deploy"
> > # If you aren't using Subversion to manage your source code, > > specify > > # your SCM below: > > set :scm, :darcs > > set :scm_verbose, false > > set :deploy_via, :checkout
> > set :user, 'myapp'
> > role :app, "myapp.com" > > role :web, "myapp.com" > > role :db, "myapp.com", :primary => true
Sadly, yeah, it sounds like you're one of the lucky few who are getting bitten by that one. I've never been able to duplicate it reliably, so I'm not sure what's causing it, but I'm hoping my rewrite of Net::SFTP will fix it. (Should have that ready to release by the end of the month).
In the meantime, I believe some on this list have written custom strategies to work around that bug... anyone want to chime in here?
- Jamis
On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:
> Thanks, Jamis. Changing to ":checkout, :copy" gets the code from my > local darcs repository on my development machine, which works fine for > me.
> Another problem, however: cap freezes while uploading the gzipped > copy of the code. The last thing cap prints to the screen is:
> ** uploading data to mysite.com:/tmp/20070816195756.tar.gz
> Then it does nothing until I kill it. If I log in to the server, > there's a file at /tmp/20070816195756.tar.gz with zero bytes. Could > this be some obscure bug in Ruby's SFTP library?
> Thanks, > -Stuart
> On Aug 16, 1:43 pm, "Jamis Buck" <ja...@37signals.com> wrote: > > When using the :checkout deployment strategy, the repository must be > > accessible by both the remote host(s) and the local host (since it > > just does a checkout operation on each target host).
> > If that's not an option, you might want to consider using the :copy > > strategy, instead.
> > - Jamis
> > On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:
> > > Hello all,
> > > Anyone using Capistrano with darcs? I'm trying to deploy to a new > > > server and not having any luck. > > > I've copied the darcs repository to a directory on the server. When > > > cap is trying to get the list of patches from the repository, it can't > > > find it, so darcs fails with the error "Not a repository."
> > > Here's my deploy.rb:
> > > set :application, "myapp" > > > set :repository, "/home/myapp/darcs/myapp"
> > > # If you aren't deploying to /u/apps/#{application} on the target > > > # servers (which is the default), you can specify the actual > > > location > > > # via the :deploy_to variable: > > > set :deploy_to, "/home/myapp/deploy"
> > > # If you aren't using Subversion to manage your source code, > > > specify > > > # your SCM below: > > > set :scm, :darcs > > > set :scm_verbose, false > > > set :deploy_via, :checkout
> > > set :user, 'myapp'
> > > role :app, "myapp.com" > > > role :web, "myapp.com" > > > role :db, "myapp.com", :primary => true
> Sadly, yeah, it sounds like you're one of the lucky few who are > getting bitten by that one. I've never been able to duplicate it > reliably, so I'm not sure what's causing it, but I'm hoping my rewrite > of Net::SFTP will fix it. (Should have that ready to release by the > end of the month).
> In the meantime, I believe some on this list have written custom > strategies to work around that bug... anyone want to chime in here?
> - Jamis
> On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:
> > Thanks, Jamis. Changing to ":checkout, :copy" gets the code from my > > local darcs repository on my development machine, which works fine for > > me.
> > Another problem, however: cap freezes while uploading the gzipped > > copy of the code. The last thing cap prints to the screen is:
> > ** uploading data to mysite.com:/tmp/20070816195756.tar.gz
> > Then it does nothing until I kill it. If I log in to the server, > > there's a file at /tmp/20070816195756.tar.gz with zero bytes. Could > > this be some obscure bug in Ruby's SFTP library?
> > Thanks, > > -Stuart
> > On Aug 16, 1:43 pm, "Jamis Buck" <ja...@37signals.com> wrote: > > > When using the :checkout deployment strategy, the repository must be > > > accessible by both the remote host(s) and the local host (since it > > > just does a checkout operation on each target host).
> > > If that's not an option, you might want to consider using the :copy > > > strategy, instead.
> > > - Jamis
> > > On 8/16/07, Stuart <ssi...@law.columbia.edu> wrote:
> > > > Hello all,
> > > > Anyone using Capistrano with darcs? I'm trying to deploy to a new > > > > server and not having any luck. > > > > I've copied the darcs repository to a directory on the server. When > > > > cap is trying to get the list of patches from the repository, it can't > > > > find it, so darcs fails with the error "Not a repository."
> > > > Here's my deploy.rb:
> > > > set :application, "myapp" > > > > set :repository, "/home/myapp/darcs/myapp"
> > > > # If you aren't deploying to /u/apps/#{application} on the target > > > > # servers (which is the default), you can specify the actual > > > > location > > > > # via the :deploy_to variable: > > > > set :deploy_to, "/home/myapp/deploy"
> > > > # If you aren't using Subversion to manage your source code, > > > > specify > > > > # your SCM below: > > > > set :scm, :darcs > > > > set :scm_verbose, false > > > > set :deploy_via, :checkout
> > > > set :user, 'myapp'
> > > > role :app, "myapp.com" > > > > role :web, "myapp.com" > > > > role :db, "myapp.com", :primary => true