[capistrano] help! capistrano not creating 'current' directory

2009-06-29 Thread Josh
I have never had this problem before, but when I try to do a cap deploy:update, after a setup and a check that passes, it gives this error: failed: sh -c \touch /home/deployer/apps/staging/current/tmp/ restart.txt\ This never seemed to be a problem and I have yet to solve it. Any ideas?

[capistrano] Re: help! capistrano not creating 'current' directory

2009-06-29 Thread Lee Hambley
Josh, Did you recently start using git? I suspect the tmp/ directory doesn't exist... Git won't track empty directories. - Lee 2009/6/29 Josh josh.rach...@gmail.com I have never had this problem before, but when I try to do a cap deploy:update, after a setup and a check that passes, it gives

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Rafael G.
I don't know git (I use it for basics things) but could you put your octave code as external in your rails app? Joshua wrote: It resides as two subdirectories of a single git repository. E.g., root/.git root/my-nifty-rails-app root/a-pile-of-octave-code-and-libraries

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Lee Hambley
I would expect this would work quite nicely if they were in two repositories (if you are thinking of them as two separate pieces of code). Then app A) could treat app B) as submodule 2009/6/29 Rafael G. r...@aspgems.com I don't know git (I use it for basics things) but could you put your

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Rafael G.
When I said external I want to said external repository (as in subversion). When you update your rails app then your external repository will be updated too. So you don't need try to set two repositories in capistrano. Lee Hambley wrote: I would expect this would work quite nicely if they

[capistrano] Re: help! capistrano not creating 'current' directory

2009-06-29 Thread Matt Davies
I had a similar sort of problem but it turned out that I hadn't run the cap deploy:setup properly. Don't ask me how 2009/6/29 Lee Hambley lee.hamb...@gmail.com: Josh, Did you recently start using git? I suspect the tmp/ directory doesn't exist... Git won't track empty directories. - Lee

[capistrano] Re: help! capistrano not creating 'current' directory

2009-06-29 Thread Lee Hambley
Josh, Since cap:deploy:setup can, unless you have disabled it use sudo, it's entirely possible that your deploy user doesn't have permission to write to the directories it has setup, there're two options; one check the permissions on the directories that deploy:setup makes, or alternately, add

[capistrano] Re: deploy without app or db

2009-06-29 Thread Joe McDonagh
Mathias Meyer wrote: On Fri, Jun 19, 2009 at 10:12 PM, Joe McDonaghjoseph.e.mcdon...@gmail.com wrote: Hi, I have a simple web push I want to do, and it looks like it works fine, but it's not a rails app so there should be no app or db role. How do I tell deploy.rb that? Just set

[capistrano] Re: deploy without app or db

2009-06-29 Thread Lee Hambley
Joe, Can you paste the exact error? - Lee 2009/6/29 Joe McDonagh joseph.e.mcdon...@gmail.com Mathias Meyer wrote: On Fri, Jun 19, 2009 at 10:12 PM, Joe McDonaghjoseph.e.mcdon...@gmail.com wrote: Hi, I have a simple web push I want to do, and it looks like it works fine, but it's not

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Peter Booth
Do you always need to deploy both together? Might you ever want to deploy them separately? On Jun 29, 2009, at 5:08 AM, Lee Hambley wrote: I would expect this would work quite nicely if they were in two repositories (if you are thinking of them as two separate pieces of code). Then app

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Joshua
I'd rather keep them in a single repository just because of the headache of managing lots of repositories - the repository they are in is already one of a number of repositories.. It seems like it'd be nice if the notion of a package/module was distinct from the notion of a repository. Josh On

[capistrano] Re: How to deploy single app spanning two dirs: one is Rails, one is Octave ?

2009-06-29 Thread Joshua
Sometimes I only change one of them and not both, so yes, I can imagine only wanting to deploy one. On the other hand, they are both pretty small, so I don't mind treating them as a single unit from a deployment perspective. Josh On Jun 29, 12:52 pm, Peter Booth pbo...@nocoincidences.com wrote: