File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ The codebase for [coderwall.com](https://coderwall.com). Coderwall is a develope
10
10
* Postgres
11
11
* Heroku Toolbelt (or foreman gem)
12
12
13
-
14
13
## Get Started
14
+
15
15
``` bash
16
16
cp .env.sample .env # (most settings are not required for core functionality)
17
17
bundle install
@@ -22,8 +22,5 @@ heroku local
22
22
## Updating SSL
23
23
24
24
```
25
- $ heroku run rake letsencrypt_plugin
26
- # copy output to cert and key files
27
- $ heroku certs:update coderwall.com-cert.pem coderwall.com-key.pem
28
-
25
+ $ ./update-ssl.sh
29
26
```
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -e
3
+ FILE=/tmp/coderwall-certs.txt
4
+
5
+ extract_cert () {
6
+ sed -n " /$1 /,/END CERTIFICATE/p" $FILE | tail -n +2
7
+ }
8
+
9
+ heroku run rake letsencrypt_plugin > $FILE
10
+ extract_cert coderwall.com-cert.pem > /tmp/coderwall.com-cert.pem
11
+ extract_cert coderwall.com-key.pem > /tmp/coderwall.com-key.pem
12
+ heroku certs:update /tmp/coderwall.com-cert.pem /tmp/coderwall.com-key.pem --confirm coderwall-next
You can’t perform that action at this time.
0 commit comments