# How to bring GenieACS on "dev" mode

**URL:** <https://forum.genieacs.com/t/how-to-bring-genieacs-on-dev-mode/1032>\
**Category:** Uncategorized\
**Created:** [September 10, 2020, 11:16pm UTC](https://forum.genieacs.com/t/how-to-bring-genieacs-on-dev-mode/1032 "2020-09-10T23:16:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![perotta](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@perotta](https://forum.genieacs.com/u/perotta)\
**Post date:** [September 10, 2020, 11:16pm UTC](https://forum.genieacs.com/t/how-to-bring-genieacs-on-dev-mode/1032/1 "2020-09-10T23:16:38Z")

</div>

Hi,

I’m sorry if this is more a NodeJS question than a GenieACS one, but does some knows how do I bring a “live”/“dev” environemment so I can rapidly see the changes I make on the code?

Like I’m used to code on ReactJS and when I do  
“npm start” it will launch the website and I can just hotload new changes and see console.log() statements directly on my console.

Is there something similar I can do with GenieACS?

Thanks

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [September 11, 2020, 8:26pm UTC](https://forum.genieacs.com/t/how-to-bring-genieacs-on-dev-mode/1032/2 "2020-09-11T20:26:26Z")

</div>

You need to be more explicit about what code you are changing. The Rails UI? An extension script? Provision script? VirtualParameters script?

-dan

---

<div class="post-metadata">

**Author:** ![perotta](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@perotta](https://forum.genieacs.com/u/perotta)\
**Post date:** [September 11, 2020, 8:32pm UTC](https://forum.genieacs.com/t/how-to-bring-genieacs-on-dev-mode/1032/3 "2020-09-11T20:32:31Z")

</div>

I want to experiment with files under the /lib directory (like lib/cwmp.ts and lib/config.ts ). I want to change the source code and have a faster feedback , instead of needing to run “npm run build” and than restart services

---

<div class="post-metadata">

**Author:** ![perotta](https://avatars.discourse-cdn.com/v4/letter/p/f04885/32.png) [@perotta](https://forum.genieacs.com/u/perotta)\
**Post date:** [September 14, 2020, 7:01pm UTC](https://forum.genieacs.com/t/how-to-bring-genieacs-on-dev-mode/1032/4 "2020-09-14T19:01:19Z")

</div>

I didn’t find exactly what I was looking for, but got to see what I wanted.

Under:  
build/build.ts  
I changed const MODE = process.env[“NODE\_ENV”] || “production”;  
to  
I changed const MODE = process.env[“NODE\_ENV”] || “development”;

Added env variable under /opt/genieacs/genieacs.env  
NODE\_ENV=development

Rebuilt code (npm run build)

Now I can see unminified code under dist/bin. And also the exception stack AND console.log() can be seen under /var/log/daemon.log

So this was enough to find the bug I was facing, but I was making changes on my bundled code (dist/bin/genieacs-cwmp) instead of (what was my initial purpose) to change it on source code (lib/cwmp.ts)
