Hi,
I recently had to solve a similar issue, and what I've done (after the
steps you already mentioned)
was to add a few symlink commands in the :after_symlink task, something
like this:
namespace :deploy do
task :after_symlink do
run "ln -nsf #{shared_dir}/config_files #{current_dir}/config_files"
end
end
I used it for some railsless deploy so you'd have to make your changes. But
that's not all anyway. In the :after_setup task, that is run only after
"cap deploy:setup" I issue a command similar to:
cp -r ~/config_files #{shared_dir}/config_files
So that every "cap deploy" command will have a directory to symlink against.
That assumes that you'll gave a config_files dir in your home directory. But
you may drop this step and manually add the config_files dir after you run
"cap deploy:setup". Your choice.
Hope it helps.
On 8/16/2009 22:47, snowmaninthesun wrote:
> I'm new to the opensource game, i'm hosting my git repository on
> github, and anyone can get to it, however in the interests of keeping
> my server secure(ish) i don't plan on publishing my passwords for
> everyone to see. So i committed some placeholder files with fake info,
> then .gitignore the files and replaced them with the correct info. I
> manually put the correct database.yml on my server and everyone is
> happy.
>
> Now when I 'cap deploy', a new release folder is created from my
> repository on github, and the release doesn't have my database.yml,
> and I have to manually copy it over. I started a thread over at github
> to figure out how to get around this...from the sounds of things I
> have something setup in my deployment scenario incorrect. Here is the
> thread
> http://support.github.com/discussions/feature-requests/372-github-privacy-upload
> . Am i correct that I shouldn't have to replace the files manually? If
> so any clue what I may have setup incorrectly?
>
> >
>
>
--
Ionut G. Stan
I'm under construction | http://igstan.blogspot.com/
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---