Deploy Custom Build For Production

I made a fork and added some changes to core (server side).

I’m able to run it fine locally: Ghost Docs

However, I’m not sure what the process is for deploying for production.

I see grunt prod but there’s not much documentation after.

Also looked into ghost install --zip.

And I see: How to deploy a custom build on production?
but that’s for for deploying to an existing build.

Is there any documentation on how to deploy a custom build for production from scratch? Ideally, I’d like to use ghost-cli.

thanks

We recommend not modifying the core of Ghost as it comes with a series of ramifications, such as opting out of updates and experiencing unique bugs that can’t be assisted by the community.

I’d highly recommend investigating other methods of implementing the features you want with external tools and integrations. That way you get the best of both worlds :slightly_smiling_face:

Hey @DavidDarnes

Thanks for the reply. To clairify, I wanted to add Okta integration to Ghost. Below is my conversation with support.

Hello Team,
I’d love to use ghost for our CMS but our security team requires we use okta to sign in. Is this currently supported? I was able to authenticate on a simple static site, but I’m having trouble integrating into ghost.
www.okta.com/
I’m reaching out because it’ll be a deal breaker if we can’t integrate. We’re on the final stages of approval.
Patiently waiting for your reply
leon

Hi Leon,
Thanks for reaching out, and considering Ghost!
To answer your question, Ghost does not have support for Okta, however if it was something you wanted to integrate you would need to do so with a self-hosted instance of the platform, and it would require you to edit core Ghost files.
That being said, I’m afraid this isn’t something we provide documentation on how to implement yet , but we do have documentation on the platform (and API) available here if you wanted to take a look.
I hope this helps answer your question. If you have others, just let us know! We’re always here.
All the best

I was able to add okta integration by adding some middleware. Nothing else is modified.

Any help is appreciated.

I think you might be looking for grunt release… You can see other available commands with grunt --help

1 Like