Closed pjebs closed 3 years ago
There is an example secrets file constructed if you follow the bootstrap route, but this requires having the db up and running and a local user with permissions, which isn't always the way people approach setup. So I agree an example file would be good.
{
"development": {
"assets_compiled": "no",
"db": "gohackernews_development",
"db_adapter": "mysql",
"db_pass": "28928acfb9e42b84",
"db_user": "gohackernews_ser",
"hmac_key": "156af7219263adac6e4b9c5a3173df9d45039aa27399e235178f0019defb78f0",
"log": "log/development.log",
"meta_desc": "",
"meta_keywords": "",
"meta_title": "",
"path": "github.com/kennygrant/gohackernews",
"port": "3000",
"secret_key": "eeafcc0b064a0d3d22f1c7b763291b166d53ba92dc2ba17fa57d403befbdf6f7",
"session_name": "gohackernews_session"
},
"production": {
"assets_compiled": "yes",
"db": "gohackernews_production",
"db_adapter": "mysql",
"db_pass": "28928acfb9e42b84",
"db_user": "gohackernews_ser",
"hmac_key": "e252c0f77f5123582803c629fcf5d3fa540606a70e71b0cb8138a5954cc25822",
"log": "log/production.log",
"meta_desc": "",
"meta_keywords": "",
"meta_title": "",
"path": "github.com/kennygrant/gohackernews",
"port": "80",
"secret_key": "2c1d7279b23552cacacf8555eccfad0ea03f4f59bf6366b42f3feaa69f64d044",
"session_name": "gohackernews_session"
},
"test": {
"assets_compiled": "no",
"db": "gohackernews_test",
"db_adapter": "mysql",
"db_pass": "28928acfb9e42b84",
"db_user": "gohackernews_ser",
"hmac_key": "ba4b8c35cb3814d46c61af549e350e4ac4e1e1d2e5448a614897aa6e0e67e00b",
"log": "log/test.log",
"meta_desc": "",
"meta_keywords": "",
"meta_title": "",
"path": "github.com/kennygrant/gohackernews",
"port": "3000",
"secret_key": "446e05d6c1c4acf667e2d1f53d755772747643b34828b31de174f4ccdd9f7cd8",
"session_name": "gohackernews_session"
}
}
@kennygrant
It would be good if an example of the secrets.json file was provided so we know what info we need to properly configure.