about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/akismet.yml6
-rw-r--r--config/deploy.rb2
-rw-r--r--config/initializers/akismet.rb2
-rw-r--r--config/routes.rb6
4 files changed, 14 insertions, 2 deletions
diff --git a/config/akismet.yml b/config/akismet.yml new file mode 100644 index 0000000..581aa7b --- /dev/null +++ b/config/akismet.yml
@@ -0,0 +1,6 @@
1production:
2 api_key: ""
3 app_url: ""
4development:
5 api_key: ""
6 app_url: ""
diff --git a/config/deploy.rb b/config/deploy.rb index b6cbdf9..cbac23c 100644 --- a/config/deploy.rb +++ b/config/deploy.rb
@@ -21,7 +21,7 @@ set :deploy_to, "/srv/www/thoughts"
21# set :pty, true 21# set :pty, true
22 22
23# Default value for :linked_files is [] 23# Default value for :linked_files is []
24append :linked_files, "config/database.yml", "config/secrets.yml", "config/lingo.yml" 24append :linked_files, "config/database.yml", "config/secrets.yml", "config/lingo.yml", "config/akismet.yml"
25 25
26# Default value for linked_dirs is [] 26# Default value for linked_dirs is []
27append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads" 27append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads"
diff --git a/config/initializers/akismet.rb b/config/initializers/akismet.rb new file mode 100644 index 0000000..325e48f --- /dev/null +++ b/config/initializers/akismet.rb
@@ -0,0 +1,2 @@
1Akismet.api_key = Rails.application.config_for(:akismet)[:api_key]
2Akismet.app_url = Rails.application.config_for(:akismet)[:app_url]
diff --git a/config/routes.rb b/config/routes.rb index 580cce4..2bae007 100644 --- a/config/routes.rb +++ b/config/routes.rb
@@ -24,7 +24,11 @@ Rails.application.routes.draw do
24 24
25 root "blogs#summary" 25 root "blogs#summary"
26 26
27 resources :blogs, only: [:index, :show], param: :slug, path: "blog" 27 resources :blogs, only: [:index, :show], param: :slug, path: "blog" do
28 member do
29 resources :comments, only: [:create]
30 end
31 end
28 32
29 get 'thinks/:slug', to: 'streams#show', as: :stream 33 get 'thinks/:slug', to: 'streams#show', as: :stream
30 34