Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no "config.js" file in ghost 1.21.2 #11

Open
veyeah opened this issue Feb 22, 2018 · 3 comments
Open

There is no "config.js" file in ghost 1.21.2 #11

veyeah opened this issue Feb 22, 2018 · 3 comments

Comments

@veyeah
Copy link

veyeah commented Feb 22, 2018

But there is no "config.js" file in ghost 1.21.2
how can i configure my oss-store
maybe config.[env].json?
if i configure config.production.json file ,then ghost can not restart!
Ghost-cli version 1.5.2
Ghost version 1.21.2

can you help me? thanyou very much

通过ghostcli安装的最新版本怎么配置oss-store?没有config.js文件呀~~

@hxsf
Copy link
Collaborator

hxsf commented Feb 23, 2018

yes. use config.[env].json

like this (replace the upper case value with your own config)

{
    "url": "http://localhost:2368/",
    "server": {
        "port": 2368,
        "host": "0.0.0.0"
    },
    "...": "...",
    "storage": {
        "active": "ghost-oss-store",
        "ghost-oss-store": {
            "accessKeyId": "YOUR ACCESSKEYID",
            "accessKeySecret": "YOUR ACCESSKEYSECRET",
            "bucket": "BUCKET_NAME",
            "region": "YOUR REGION",
            "origin": "YOUR ORIGIN",
            "fileKey": {
                "safeString": true,
                "prefix": "YOUR_PREFIX",
                "suffix": ""
            }
        }
    }
}

@veyeah
Copy link
Author

veyeah commented Feb 25, 2018

i've try.
but it did not work anyway. ghost can't start
i use ghost-qn-store instead of oss-store now

@hxsf
Copy link
Collaborator

hxsf commented Feb 26, 2018

I need some log to ensure what cause it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants