deployment problems

Subscribe to deployment problems 12 post(s), 5 voice(s)

 
Avatar ant284 13 post(s)

I posted about subversion but then i saw a good link from your wiki and did the step but I still don’t understand why it is not working
here is what i have do
-on my server i have 2 folders “default – subversion”

-on my computer i have
C:\ruby\Allapp\antsapp\trunk (containing all the rails folder i.e app,lib config ect)

-then i upload the Allapp to my subversion on brigthbox

-on my computer
I do cd C:\Ruby\Allapp\antsapp\trunk\

- I type “brightbox -i MYACCOUT-001.vm.brightbox.net . -a mongrel”

- Finally I type cap deploy:initial

at then end i see on my server three folder
MYACCOUNT folder , default folder, subversion folder

but MYAccount folder does not contain my app, just 2/3 folder plus a yml config folder

I don’t know where I go wrong

thanks for the help so far!

 
Avatar ant284 13 post(s)

Hi,

maybe someone can clarify this I re-did my steps
I did the following
I have a new app here (Simple scaffolding)
C:\Ruby\myNewApp (that folder contains everything app,config,db,lib,public etc..)

on my Windows command prompt I do

C:> brightbox -i MYACCOUNT-001.vm.brightbox.net -a mongrel -n myNewApp C:\Ruby\myNewApp

then

c:> cd C:\Ruby\myNewApp

c:\Ruby\myNewApp > cap deploy:initial (then something happens)

Are those the correct step, because I still can’t find anything any folder, except i see on my server
/home/myNewApp/ 1 yml file and release and shared folder
I’m using the steps from
http://wiki.brightbox.co.uk/docs:gemv2:howto

any help would be really nice!

 
Avatar David Smalley Administator 36 post(s)

@ant284 Can you clarify this step:

“then i upload the Allapp to my subversion on brigthbox”

Are you committing the code to subversion via svn+ssh? What happens if you type:

svn ls svn+ssh://MYACCOUT-001.vm.brightbox.net/home/rails/subversion/<reponame>

 
Avatar ant284 13 post(s)

Hi

thank you, i managed to see, but the second post below, is I did not use SVN at all
i followed the step and I don’t see anything… although it says on the set by step guide
I will get a mail but since the account does not belong to me, just doing it for someone.. I don’t get any email and I also do not see any directories
/home/rails/myNewapp/current/…

 
Avatar ant284 13 post(s)

hi,

so does cap deploy:initial transfer all the files from my home computer director to brightbox directory?? or should I put my app to svn then export it…
also what is this /current/public ??? I never seen beeing created

 
Avatar David Smalley Administator 36 post(s)

ant284 By default cap deploy:initial will tar the files in your local application directory and upload them to your brightbox. If /home/rails/newapp/shared and /releases are getting created then the deploy is almost succeeding but it sounds like you are hitting some issue that is causing the deploy to fail and not finish up by symlinking /current to the most recent release.

If you can perhaps let us know what failure message is for Capistrano then it might help us to diagnose. If you have to paste lots of text then try just posting back with a Pastie link.

 
Avatar ant284 13 post(s)

that is what I thought, initially I think maybe the problems comes from my computer
when on my command prompt(Windows vista) says
C:\Ruby\myApp > __
then i type
deploy:initial
I think the path of C:\Ruby\myApp changes someone I will investigate this more
I managed to deploy everything, but it was all manual and was frustration, but thanks for the help I will try to notify you asap if I find a bug … But I can’t read any Errors with Capistrano on the command prompt maybe there is a log somewhere?

 
Avatar ant284 13 post(s)

Hi,

you can view the cap deploy:initial here
http://pastie.org/426756

thank you
Anthony

 
Avatar rob5 9 post(s)

Guess you’ve sorted by now.. but in case others read it.. I found that if you are using Windows you don’t want Cap to deploy from your local copy (it gets the directory slashes wrong and falls over). Instead check in the code to svn and run the deployment via checkout. This is done in the deploy.rb.

 
Avatar tvgece 2 post(s)

Hi Rob5,

Could you please explain this clearly? I have same problem when deploying the code from windows client to Brightbox server.
This is the error message I am getting http://pastie.org/769869

Thanks in advance

Regards,
Venu

 
Avatar tvgece 2 post(s)

Hi Ant

Are you able to get through this? if yes, Could you please tell me the process clearly?

Thanks in advance

Regards,
Venu

 
Avatar John Leach Administator 83 post(s)

Hi,

this is a bug in Capistrano’s windows support. Have you tried using the very latest capistrano, 2.5.17? See if that fixes your local deployment problem.

If this still isn’t fixed, as rob5 said, a workaround is to use git or svn deployment – not the “local” deploy (which uses the xcopy command and gets it wrong). Put your code in an svn or git repository and deploy from that to your server.

John.

Signup or login to contribute