Capistrano & Git Submodules

Just a quick note here, in case others run into this issue. For a new Rails app, I set up ActiveScaffold with several other plugins, which were installed as git submodules. When I got to setting up Capistrano to deploy the app to my integration server, I found that things didn’t run very well, and it turned out that was because the submodules hadn’t been deployed. Instead, I had empty directories under /vendor/plugins. After a bit of searching, I discovered the magical incantation:

      set :git_enable_submodules,1

I added that to my /config/deploy.rb file, and then did a cap:deploy update and voila, there are the submodules.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: