Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added database and settings example yml files

  • Loading branch information...
commit 0f251488d355c61f062227e8dc2128c246dd5690 1 parent cc376d6
@psobot authored
View
2  .gitignore
@@ -3,3 +3,5 @@ db/*.sqlite3
log/*.log
tmp/
.sass-cache/
+config/database.yml
+config/settings.yml
View
1  app/views/content/api.html.haml
@@ -1,3 +1,4 @@
+//Severe HTML sins committed below. Forgive me.
.email
.indent
From: Peter Sobot
View
10 config/environments/production/database.yml → config/database_example.yml
@@ -1,15 +1,17 @@
development:
adapter: mysql2
database: lndry_dev
- username: root
+ username: local_user
+ password: local_password
test:
adapter: mysql2
database: lndry_test
- username: root
+ username: local_user
+ password: local_password
production:
adapter: mysql2
database: lndry_production
- username: lndry
- password: asg9hwei12nwgonsig9
+ username: production_user
+ password: production_password
View
4 config/deploy.rb
@@ -36,8 +36,8 @@
end
task :apply_configs, :roles => :app do
- run "cp #{release_path}/config/environments/#{rails_env}/database.yml #{release_path}/config/database.yml"
- run "cp #{release_path}/config/environments/#{rails_env}/settings.yml #{release_path}/config/settings.yml"
+ run "cp #{shared_dir}/database.yml #{release_path}/config/database.yml"
+ run "cp #{shared_dir}/settings.yml #{release_path}/config/settings.yml"
end
task :create_branch_file, :roles => :app, :except => { :no_symlink => true } do
View
5 config/environments/production/settings.yml
@@ -1,5 +0,0 @@
-production:
- host: lndr.me
- incoming_email_key: as9gqu9whg19wg89wg8h1w8ghw
- postageapp_api_key: 7uQSpPxWGKHp8vfkWt5D7o0tErsphRcg
- secret_token: 700ec9fd8b20209bc3cc71c7cde1ca494c35ab0af893390038ff8b41a53d73fc86bcaf472043571ca7e0f0eb715dc428198b5b5f25e5dc21410c2fb81e43f547
View
7 config/initializers/backtrace_silencers.rb
@@ -1,7 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
-# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
-
-# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
-# Rails.backtrace_cleaner.remove_silencers!
View
10 config/initializers/inflections.rb
@@ -1,10 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new inflection rules using the following format
-# (all these examples are active by default):
-# ActiveSupport::Inflector.inflections do |inflect|
-# inflect.plural /^(ox)$/i, '\1en'
-# inflect.singular /^(ox)en/i, '\1'
-# inflect.irregular 'person', 'people'
-# inflect.uncountable %w( fish sheep )
-# end
View
5 config/initializers/mime_types.rb
@@ -1,5 +0,0 @@
-# Be sure to restart your server when you modify this file.
-
-# Add new mime types for use in respond_to blocks:
-# Mime::Type.register "text/richtext", :rtf
-# Mime::Type.register_alias "text/html", :iphone
View
18 config/settings_example.yml
@@ -0,0 +1,18 @@
+development:
+ host: lndry.dev
+ recipient_override: you@you.com
+ incoming_email_key: <some_long_string>
+ postageapp_api_key: get_this_from_postageapp_dot_com
+ secret_token: long_rails_string_for_secrecy_without_dictionary_words
+test:
+ host: test.host
+ recipient_override: you@you.com
+ incoming_email_key: <some_long_string>
+ postageapp_api_key: get_this_from_postageapp_dot_com
+ secret_token: long_rails_string_for_secrecy_without_dictionary_words
+production:
+ host: lndr.me
+ incoming_email_key: <some_long_string>
+ postageapp_api_key: get_this_from_postageapp_dot_com
+ secret_token: long_rails_string_for_secrecy_without_dictionary_words
+
Please sign in to comment.
Something went wrong with that request. Please try again.