# Smart Action doesn\`t shows up in settings

**URL:** <https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590>\
**Category:** Help me!\
**Created:** [January 10, 2021, 12:28am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590 "2021-01-10T00:28:36Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomlobato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/tomlobato/32/1320_2.png) [@tomlobato](https://community.forestadmin.com/u/tomlobato)\
**Post date:** [January 10, 2021, 12:28am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/1 "2021-01-10T00:28:37Z")

</div>

In a fresh install of lumber (without docker), crud worked fine.  
When trying to make the first smart action, from [Create and manage Smart Actions - Documentation](https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions), it doesnt appear in Smart Actions tab of the model settings page. Tried npm start several times, clear browser cache, check and re-check  
forest/MYMODEL.js file:  
…  
actions: [{name: ‘smart action name’}]

but without success. The only thing I see is  
“No Smart Action  
This collection does not have any Smart Action yet.”

Any hint?

---

<div class="post-metadata">

**Author:** ![anon37102731](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon37102731](https://community.forestadmin.com/u/anon37102731)\
**Post date:** [January 11, 2021, 8:21am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/2 "2021-01-11T08:21:15Z")

</div>

Hi @tomlobato, and welcome to the ForestAdmin community!

Would you mind sharing with me the project name, collection, and smart action name with me so I can check if we’ve got any trace of this one on our end?

Thank you

---

<div class="post-metadata">

**Author:** ![anon37102731](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon37102731](https://community.forestadmin.com/u/anon37102731)\
**Post date:** [January 11, 2021, 10:02am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/3 "2021-01-11T10:02:20Z")

</div>

@tomlobato thank you for sharing those in private.

I checked on our end and it seems that indeed, nor your development environment’s `forestadmin-schema.json` file nor the production one contains the smart action.

On development environments, the `forestadmin-schema.json` file is updated and sent when restarting your server.

As production environments are intended to follow a development environment on which you’d make all model and collection editions, the schema is not updated but only sent.

The correct flow would then be:

- Add your smart action on your development environment collection file.
- Restart your development environment (this should update the `forestadmin-schema.json` file and send it).
- You should then see the smart action on your development environment collection settings.

Then if you want to have your smart action available on your production environment:

- Push your code from the development application to the production one. (this should then manually add the smart action on both your collection and `forestadmin-schema.json` file)
- Restart your production environment application. (this should send the newly edited schema to our end and make the smart action available on your collection settings of your production environment)

I hope those explanations will help you make your smart action available

---

<div class="post-metadata">

**Author:** ![tomlobato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/tomlobato/32/1320_2.png) [@tomlobato](https://community.forestadmin.com/u/tomlobato)\
**Post date:** [January 11, 2021, 10:22am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/4 "2021-01-11T10:22:27Z")

</div>

Hours could be saved on my end if the doc mentioned it! And it doesnt matter if, _at some point_ of the whole doc, this is mentioned. It MUST be in every page that says to “restart the server”.  
As a first contact with the platform, I will think twice before proceed.  
Thank you!

---

<div class="post-metadata">

**Author:** ![anon37102731](https://avatars.discourse-cdn.com/v4/letter/a/c6cbf5/32.png) [@anon37102731](https://community.forestadmin.com/u/anon37102731)\
**Post date:** [January 11, 2021, 10:43am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/5 "2021-01-11T10:43:07Z")

</div>

@tomlobato I’m saddened to ear that you lost hours with this behavior.

Your feedback is really important to us. Thank you for sharing, we’ll try to update the documentation to make the difference between updating schemas on development and production environment clearer.

---

<div class="post-metadata">

**Author:** ![tomlobato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/tomlobato/32/1320_2.png) [@tomlobato](https://community.forestadmin.com/u/tomlobato)\
**Post date:** [January 11, 2021, 6:41pm UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/6 "2021-01-11T18:41:35Z")

</div>

> [@anon37102731](#):
>
> Push your code from the development application to the production one

What means push in this context? Via git (which?), edit files (which, where?), some custom lumber command (which?)?

---

<div class="post-metadata">

**Author:** ![anon16419211](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anon16419211](https://community.forestadmin.com/u/anon16419211)\
**Post date:** [January 12, 2021, 9:54am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/7 "2021-01-12T09:54:01Z")

</div>

Hello @tomlobato !

In this context this means that once the smart action works the way you want it to in a development environment, we suggest you to reproduce the changes in your production environment so that you can take full advantage of them.

If you have created a git folder you can add your changes directly to it. Otherwise you just have to copy/paste the changes by hand from your development environment to your production environment.

Let me know if that helps !

---

<div class="post-metadata">

**Author:** ![tomlobato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/tomlobato/32/1320_2.png) [@tomlobato](https://community.forestadmin.com/u/tomlobato)\
**Post date:** [January 12, 2021, 8:17pm UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/8 "2021-01-12T20:17:17Z")

</div>

[lclisson](https://community.forestadmin.com/u/lclisson), it is confusing the information you are bringing. You said to update dev env and then update manually the prod env. I just updated the prod env and the changes never came to the gui. Does Forest makes some check to only apply to prod if the same changes are on dev? Whats weird behavior would be this? If not, why the changes I already made on prod never showed up? Is it a bug? Its not making sense at all.

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [January 13, 2021, 9:25am UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/9 "2021-01-13T09:25:58Z")

</div>

Hi !  
No prod and dev are separate and you can have different schemas on both. It is what we advise people to do, along with using version control, to make sure they don’t have disparities between their environments.  
Notice that new smart actions are hidden by default and you have yo enable them in the layout editor.  
If they don’t show up there, can you try to use your working forest development app code in production ?

---

<div class="post-metadata">

**Author:** ![tomlobato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/tomlobato/32/1320_2.png) [@tomlobato](https://community.forestadmin.com/u/tomlobato)\
**Post date:** [January 13, 2021, 1:22pm UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/10 "2021-01-13T13:22:28Z")

</div>

Thank you.  
I know it needs to be enabled in the GUI, but it DIDNT appear to be enabled, get it?  
It looks like [lamatt\_v](https://community.forestadmin.com/u/lamatt_v) send me a generic reply, without understanding the detail of the issue.  
The detail is: changing model/X.js doesnt make the smart action comes to the GUI, I keep seeing  
“No Smart Action  
This collection does not have any Smart Action yet.”

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [January 13, 2021, 1:43pm UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/11 "2021-01-13T13:43:27Z")

</div>

We do what we can to help 😉  
This might seem like dumb questions, but I prefer to cross them off my list.  
Are your smart actions defined the same way on both environments ?  
Are they present on dev (and working) ?  
Have you any error on your production environment and/or in your web console ?

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [January 13, 2021, 1:56pm UTC](https://community.forestadmin.com/t/smart-action-doesn-t-shows-up-in-settings/1590/12 "2021-01-13T13:56:22Z")

</div>

One simple thing that people usually forget to do it to copy the updated `.forestadmin-schema.json` to their production environment. Did you copy it @tomlobato ?
