aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorre4k <re4k@re4k.info>2013-05-05 16:49:36 +0900
committerre4k <re4k@re4k.info>2013-05-05 16:49:36 +0900
commit33fa30d3a5e116cfc6b1347605a57aed49469900 (patch)
treedfacfac2f48c0aa9f89024075f54c0ac37e74817 /README.md
parent0544f801143a937a6a7880299319a7eb61b28523 (diff)
downloadaclog-33fa30d3a5e116cfc6b1347605a57aed49469900.tar.gz
update settings (rails: web/receiver)
Diffstat (limited to 'README.md')
-rw-r--r--README.md18
1 files changed, 15 insertions, 3 deletions
diff --git a/README.md b/README.md
index 35ce0af..e78addf 100644
--- a/README.md
+++ b/README.md
@@ -23,14 +23,26 @@ A web service like Favstar.
* User settings (favorites notification)
## Requirements
-* Ruby 1.9.3+
-* MySQL 5.5.14+
+* Ruby 1.9.3
+* MySQL/MariaDB 5.5.14+
## Setup
-Add to my.cnf
+### MySQL
+Add to `my.cnf`
[mysqld]
innodb_file_format = Barracuda
innodb_file_per_table = 1
innodb_large_prefix
+Create MySQL user
+### aclog configuration
+* Rename `config/settings.yml.example` to `config/settings.yml` and set consumer key, ...
+* Rename `env.sh.example` to `env.sh` and set `DATABASE_URL`.
+* Setup database
+
+ source env.sh
+ rake db:setup
+
+* Set secret token. Rename `config/initializers/secret_token.rb.example` to `config/initializers/secret_token.rb`. Run `rake secret` and set the result to `config/initializers/secret_token.rb`.
+