I am using Action Mailer and have my configuration settings for Action Mailer in my environment.rb file. I would like to post my project in a public repository along with an environment.rb file, but I do not want to include my mail server’s login information. How does one configure Capistrano’s deploy.rb so that it prompts the user for the mail server settings and then modifies or creates an environment.rb file during Capistrano’s deployment.
Thanks for looking =)
There are lots of other variations on this… see this blog post for more ideas:
http://www.simonecarletti.com/blog/2009/06/capistrano-and-database-yml
Here a start…
Add this into your production.rb environment file:
And in a capistrano task, you can do something like this:
Then, you create a template actionmailer.yml.erb file: