# Deploy Custom Build For Production

**URL:** <https://forum.ghost.org/t/deploy-custom-build-for-production/12656>\
**Category:** Installation\
**Created:** [March 13, 2020, 2:16am UTC](https://forum.ghost.org/t/deploy-custom-build-for-production/12656 "2020-03-13T02:16:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leon123](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@leon123](https://forum.ghost.org/u/leon123)\
**Post date:** [March 13, 2020, 2:16am UTC](https://forum.ghost.org/t/deploy-custom-build-for-production/12656/1 "2020-03-13T02:16:35Z")

</div>

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

I’m able to run it fine locally: [Ghost Docs](https://ghost.org/docs/install/source/#run-setup--installation)

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

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

> **[Ghost Docs](https://ghost.org/docs/install/source/#running-ghost)**
>
> Everything you need to know about working with the Ghost professional publishing platform.

Also looked into ghost install --zip.

> **[Ghost-CLI - A fully loaded tool for installation and configuration](https://ghost.org/docs/ghost-cli/#ghost-install)**
>
> The best way to install, manage, and update your site locally or when self-hosting Ghost. A full guide for our advanced CLI tool.

And I see: [How to deploy a custom build on production?](https://forum.ghost.org/t/how-to-deploy-a-custom-build-on-production/2446)  
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

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [March 13, 2020, 9:28am UTC](https://forum.ghost.org/t/deploy-custom-build-for-production/12656/2 "2020-03-13T09:28:19Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![leon123](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@leon123](https://forum.ghost.org/u/leon123)\
**Post date:** [March 13, 2020, 3:37pm UTC](https://forum.ghost.org/t/deploy-custom-build-for-production/12656/3 "2020-03-13T15:37:25Z")

</div>

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/](https://www.okta.com/login/)  
> 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](https://ghost.org/docs/install/ubuntu/) 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](https://ghost.org/docs/api/v3/)) available [here](https://ghost.org/docs/) 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.

> **[@okta/oidc-middleware](https://www.npmjs.com/package/@okta/oidc-middleware)**
>
> OpenId Connect middleware for authorization code flows. Latest version: 5.2.0, last published: a day ago. Start using @okta/oidc-middleware in your project by running \`npm i @okta/oidc-middleware\`. There are 12 other projects in the npm registry...

Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [March 13, 2020, 4:32pm UTC](https://forum.ghost.org/t/deploy-custom-build-for-production/12656/4 "2020-03-13T16:32:10Z")

</div>

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