Permalink
Browse files

Explain setting fo secret key on Heroku

  • Loading branch information...
1 parent dea5393 commit feac7615137f14de17bfe72cce7a80d3c297a403 @mvz mvz committed Jan 10, 2017
Showing with 10 additions and 4 deletions.
  1. +10 −4 README.md
View
@@ -94,11 +94,11 @@ In order to install Publify on Heroku, you’ll need to do some minor tweaks.
First of all, you need to setup Amazon S3 storage to be able to upload files on
your blog. Set Heroku config vars.
-```yaml
+```bash
heroku config:set provider=AWS
-aws_access_key_id=YOUR_AWS_ACCESS_KEY_ID
-aws_secret_access_key=YOUR_AWS_SECRET_ACCESS_KEY
-aws_bucket=YOUR_AWS_BUCKET_NAME
+heroku config:set aws_access_key_id=YOUR_AWS_ACCESS_KEY_ID
+heroku config:set aws_secret_access_key=YOUR_AWS_SECRET_ACCESS_KEY
+heroku config:set aws_bucket=YOUR_AWS_BUCKET_NAME
```
To generate the Gemfile.lock, run:
@@ -114,6 +114,12 @@ Add the HEROKU config variable to your Heroku instance:
heroku config:set HEROKU=true
```
+You also need to set Rails' secret key base. Generate one using `rake secret`, then set the Heroku config var:
+
+```bash
+heroku config:set secret_key_base=YOUR_GENERATED_SECRET
+```
+
Push the repository to Heroku.
When deploying for the first time, Heroku will automatically add a Database

0 comments on commit feac761

Please sign in to comment.