回答編集履歴
1
Add expression
test
CHANGED
@@ -60,6 +60,30 @@
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
+
Clear DB を使う場合は、次の方法で `DATABASE_URL` を設定します:
|
64
|
+
|
65
|
+
[ClearDB MySQL | Heroku Dev Center](https://devcenter.heroku.com/articles/cleardb#configuring-your-ruby-application-to-use-cleardb)
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
```console
|
70
|
+
|
71
|
+
$ heroku config | grep CLEARDB_DATABASE_URL
|
72
|
+
|
73
|
+
CLEARDB_DATABASE_URL => mysql://adffdadf2341:adf4234@us-cdbr-east.cleardb.com/heroku_db?reconnect=true
|
74
|
+
|
75
|
+
$ heroku config:set DATABASE_URL='mysql://adffdadf2341:adf4234@us-cdbr-east.cleardb.com/heroku_db?reconnect=true'
|
76
|
+
|
77
|
+
Adding config vars:
|
78
|
+
|
79
|
+
DATABASE_URL => mysql2://adffd...b?reconnect=true
|
80
|
+
|
81
|
+
Restarting app... done, v61.
|
82
|
+
|
83
|
+
```
|
84
|
+
|
85
|
+
|
86
|
+
|
63
87
|
また、Clear DB と Rails の場合の公式な手順が次の記事に示されています
|
64
88
|
|
65
89
|
[Connecting to ClearDB from Heroku using Ruby on Rails on Cedar – ClearDB](https://w2.cleardb.net/developers/resources/connect-ruby/#1.2)
|