diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 17:10:34 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-12 17:10:34 -0400 |
commit | 835af696703484208882a70cc5dd47c5838ecf58 (patch) | |
tree | 8174d5b8c6f2486da56569bad361dd10aa1183f8 /config | |
parent | b24e6f58a525fc576e23ef9d498745e64c16cd6c (diff) | |
download | thoughts-835af696703484208882a70cc5dd47c5838ecf58.tar.gz thoughts-835af696703484208882a70cc5dd47c5838ecf58.tar.bz2 thoughts-835af696703484208882a70cc5dd47c5838ecf58.zip |
Added blog post commenting
Diffstat (limited to 'config')
-rw-r--r-- | config/akismet.yml | 6 | ||||
-rw-r--r-- | config/deploy.rb | 2 | ||||
-rw-r--r-- | config/initializers/akismet.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 6 |
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 @@ | |||
1 | production: | ||
2 | api_key: "" | ||
3 | app_url: "" | ||
4 | development: | ||
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 [] |
24 | append :linked_files, "config/database.yml", "config/secrets.yml", "config/lingo.yml" | 24 | append :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 [] |
27 | append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads" | 27 | append :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 @@ | |||
1 | Akismet.api_key = Rails.application.config_for(:akismet)[:api_key] | ||
2 | Akismet.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 | ||