production deployment fails
Posted: 28 November 2009 10:33 AM   [ Ignore ]
Sr. Member
RankRankRankRank
Total Posts:  132
Joined  2009-10-02

I’ve been deploying pretty regularly to my staging server and it works well. It didn’t work at all going to production however.

I have text files of my deploy.rb and the error messages from the console, let me know who to email them to because I know you don’t really want them posted here.

Profile
 
 
Posted: 28 November 2009 10:36 AM   [ Ignore ]   [ # 1 ]
Sr. Member
RankRankRankRank
Total Posts:  132
Joined  2009-10-02

There’s a lot of migrations, if you guys deploy it don’t forget to migrate the db.

Profile
 
 
Posted: 30 November 2009 04:00 AM   [ Ignore ]   [ # 2 ]
Administrator
RankRankRankRank
Total Posts:  249
Joined  2008-12-18

Can you post the error that you’re seeing? We’ll be glad to deploy your application to production, but would like to get this fixed so you can do your own deployments in the future.

Profile
 
 
Posted: 30 November 2009 04:06 AM   [ Ignore ]   [ # 3 ]
Sr. Member
RankRankRankRank
Total Posts:  132
Joined  2009-10-02

I sent complete files to support also

assetmotion@assetmotion:~/svn/assetmotion.numerexfast.com/trunkcap production deploy
  
executing `production'                                                            
  * executing 
`deploy'                                                                
    triggering before callbacks for `deploy'                                          
  
executing `daemons:stop'                                                          
  * executing 
`deploy:update'                                                         
 ** transaction: start                                                                
  * executing `deploy:update_code'                                                    
    
executing locally"svn info https://svn.numerexfast.com/repos/fast/Ublip_v2/branches/assetmotion.numerexfast.com/tags/current_production_build --username jeffrossi@assetmotion.com --password XXXXXXX --no-auth-cache  -rHEAD"                                                                                                                                                                                         
/usr/bin/svn                                                                                                                                                                                                   
https
://svn.numerexfast.com/repos/fast/Ublip_v2/branches/assetmotion.numerexfast.com/tags/current_production_build:  (Not a valid URL)                                                                         
                                                                                                                                                                                                               
svnA problem occurredsee other errors for details                                                                                                                                                          
*** [deploy:update_code] rolling back                                                                                                                                                                          
  
executing "rm -rf /opt/ublip/rails/releases/20091130135833; true"                                                                                                                                          
    
servers["assetmotion-prod.numerexfast.com"]                                                                                                                                                              
    [assetmotion
-prod.numerexfast.com] executing command                                                                                                                                                       
    command finished 

Profile
 
 
Posted: 30 November 2009 04:07 AM   [ Ignore ]   [ # 4 ]
Sr. Member
RankRankRankRank
Total Posts:  132
Joined  2009-10-02

I would love to be able to do my own deployments in the future!

Profile
 
 
Posted: 30 November 2009 04:40 AM   [ Ignore ]   [ # 5 ]
Administrator
RankRankRankRank
Total Posts:  249
Joined  2008-12-18

It looks like the deployment file was trying to access the “current_production_build” tag, but the folder wasn’t there. I noticed that you’re not using our build system so we’ve made modifications to your deployment to deploy directly from trunk. You should now be able to issue the following commands:

cap staging deploy:migrations 

and

cap production deploy:migrations 

We’ve gone ahead and deployed your production build for you. Please verify and let us know if you run into any problems.

Profile
 
 
Posted: 30 November 2009 04:52 AM   [ Ignore ]   [ # 6 ]
Sr. Member
RankRankRankRank
Total Posts:  132
Joined  2009-10-02

Yeah, it didn’t break!!!

Thank you,

so the deploy.rb that you committed should work for me and I can now deploy to production?

Profile
 
 
Posted: 30 November 2009 04:55 AM   [ Ignore ]   [ # 7 ]
Administrator
RankRankRankRank
Total Posts:  249
Joined  2008-12-18

Yes, but proceed with caution. We normally recommend that customers schedule production deployments with our support team for the first couple of times. This allows someone to be on standby in case anything breaks. But since you’ve been doing quite a few staging deployments you shouldn’t run into too many problems.

Profile
 
 
Posted: 30 November 2009 06:10 AM   [ Ignore ]   [ # 8 ]
Sr. Member
RankRankRankRank
Total Posts:  132
Joined  2009-10-02

Thanks a lot.

I’ve only been working with Ruby/Rails since September, and I have much to learn.

Profile