# Setting up a Live/Prod and a Development System

**URL:** <https://discourse.nodered.org/t/setting-up-a-live-prod-and-a-development-system/67415>\
**Category:** General\
**Created:** [7 September 2022 04:13 UTC](https://discourse.nodered.org/t/setting-up-a-live-prod-and-a-development-system/67415 "2022-09-07T04:13:24Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [7 September 2022 20:21 UTC](https://discourse.nodered.org/t/setting-up-a-live-prod-and-a-development-system/67415/20 "2022-09-07T20:21:16Z")

</div>

> [@DonRacz](#):
>
> Starting as a systemd service.

If you add tripple backticks on separate lines before logs, code etc when posting it then it stops the forum from interpretting it as markdown which is why you have the strange effects in the node red startup log you posted.

> [@DonRacz](#):
>
> node-red is now showing connected to mosquitto on 15  
> local host must have fixed that.

The reason for that is that without the listener configuration you can't connect using an ip address, even if it is the ip of the same machine. It looks to mosquitto as if it is a remote connection so it blocks it.

> [@DonRacz](#):
>
> There was a listener entry in the mosquitto.conf file on 14 so I added it to the conf file on 15.

On Linux, rather than adding the line to main config it is arguably better to put it in a separate conf file in /etc/mosquitto/conf.d. Conf files in there add to or override the main settings, but doing that has the advantage that an upgrade or re-install of mosquitto is not going to undo your changes. I add a file `/etc/mosquitto/conf.d/mossy.conf` containing

```auto
listener 1883
allow_anonymous true
log_timestamp true
log_timestamp_format %Y-%m-%d %H:%M:%S

```

Which allows remote access and also configures the mosquitto log to have human readable timestamps.  
On systems where I have users/pwds then that setup goes in that file too.

---

_[View the full topic](https://discourse.nodered.org/t/setting-up-a-live-prod-and-a-development-system/67415)._
