# 'generate' command for ood-portal-generator

**URL:** <https://discourse.openondemand.org/t/generate-command-for-ood-portal-generator/282>\
**Category:** Get Help\
**Created:** [April 10, 2019, 7:58pm UTC](https://discourse.openondemand.org/t/generate-command-for-ood-portal-generator/282 "2019-04-10T19:58:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![suzlitz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/suzlitz/32/104_2.png) [@suzlitz](https://discourse.openondemand.org/u/suzlitz)\
**Post date:** [April 10, 2019, 7:58pm UTC](https://discourse.openondemand.org/t/generate-command-for-ood-portal-generator/282/1 "2019-04-10T19:58:03Z")

</div>

The docs state that you should run the ‘bin/generate’ command to generate the config files. Where is it? I’ve looked in /etc/ood and in /var/www/ood and in /opt/rh and can’t find it. Help!

I’m trying to swing our development OnDemand VM to be our production one and it’s proving to be an all-day task.

-Susan Litzinger  
PSC

---

<div class="post-metadata">

**Author:** ![rodgers.355](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rodgers.355/32/193_2.png) [@rodgers.355](https://discourse.openondemand.org/u/rodgers.355)\
**Post date:** [April 10, 2019, 8:17pm UTC](https://discourse.openondemand.org/t/generate-command-for-ood-portal-generator/282/2 "2019-04-10T20:17:09Z")

</div>

@suzlitz `bin/generate` is located at `/opt/ood/ood-portal-generator/bin/generate`.

---

<div class="post-metadata">

**Author:** ![rodgers.355](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/rodgers.355/32/193_2.png) [@rodgers.355](https://discourse.openondemand.org/u/rodgers.355)\
**Post date:** [April 10, 2019, 8:22pm UTC](https://discourse.openondemand.org/t/generate-command-for-ood-portal-generator/282/3 "2019-04-10T20:22:17Z")

</div>

Further: if you have an existing portal configuration file (`/etc/ood/config/ood_portal.ymll`) then you may just want to run `/opt/ood/ood-portal-generator/sbin/update_ood_portal`. `update_ood_portal` will take your existing YAML config and write a new Apache conf, backing up the original.

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:17pm UTC](https://discourse.openondemand.org/t/generate-command-for-ood-portal-generator/282/4 "2022-05-26T15:17:49Z")

</div>

Closed on May 26, 2022, 3:17pm UTC


