Skip to content

Commit

Permalink
#91 staging configuration added
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdilek committed Oct 4, 2013
1 parent 38ef9c5 commit 4c00857
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/cybele/app_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def convert_application_css_to_sass
def configure_smtp
remove_file 'config/settings/production.yml'
copy_file 'config/settings/production.yml', 'config/settings/production.yml'
copy_file 'config/settings/staging.yml', 'config/settings/staging.yml'

config = <<-RUBY
config.action_mailer.delivery_method = :smtp
Expand All @@ -111,6 +112,7 @@ def configure_smtp
RUBY

configure_environment 'production', config
configure_environment 'staging', config
end

def setup_staging_environment
Expand Down
2 changes: 1 addition & 1 deletion lib/cybele/generators/app_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def customization
invoke :gitignore_files_and_folders
invoke :setup_bootstrap_sass_coffee
invoke :setup_rails_config
invoke :setup_staging_environment
invoke :configure_mail_setting
invoke :setup_rspec
invoke :setup_capybara
Expand All @@ -37,7 +38,6 @@ def customization
invoke :setup_welcome_page
invoke :setup_devise
invoke :setup_time_zone
invoke :setup_staging_environment
invoke :goodbye
end

Expand Down
8 changes: 8 additions & 0 deletions templates/config/settings/staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
smtp:
mandrill:
address: 'smtp.mandrillapp.com'
port: 587
enable_starttls_auto: true
user_name: '[email protected]'
password: 'password'
authentication: 'plain'

0 comments on commit 4c00857

Please sign in to comment.