Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chef: deploy rails from git subfolder

I'm using Chef to deploy a rails server. I'm storing my code in a git repository, but it's not the only item in the repository, it's in a subfolder

repo/
 project-files/
 more-project-files/
 rails-app/

Chef's deploy seems great, but it doesn't allow me to deploy from the subfolder (at least natively) Is there a clever way of doing this, or am I stuck using `execute' to run the rake tasks myself?

like image 944
Rob Guderian Avatar asked Dec 05 '25 10:12

Rob Guderian


1 Answers

Decided to check out the entire project to a folder, and use symlinks to link in the folders we needed.

If we need to, we could use the Git built-in 'partial checkout' stuff, but we'd have to issue the command through execute instead of deploy. We'll investigate further if the project requires, but this works for now. Too bad that Chef's deploy doesn't have that functionality.

like image 55
Rob Guderian Avatar answered Dec 08 '25 00:12

Rob Guderian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!