# Startup .json script on node-red server start and to view in editor also

**URL:** <https://discourse.nodered.org/t/startup-json-script-on-node-red-server-start-and-to-view-in-editor-also/21394>\
**Category:** General\
**Created:** [7 February 2020 11:34 UTC](https://discourse.nodered.org/t/startup-json-script-on-node-red-server-start-and-to-view-in-editor-also/21394 "2020-02-07T11:34:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karlyboy](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@karlyboy](https://discourse.nodered.org/u/karlyboy)\
**Post date:** [7 February 2020 11:34 UTC](https://discourse.nodered.org/t/startup-json-script-on-node-red-server-start-and-to-view-in-editor-also/21394/1 "2020-02-07T11:34:10Z")

</div>

Folks,

I'm a newby and learning so forgive my lack of knowledge. I have a nodejs and node-red combined server. All working nicely. Followed the parameters but can't seem to launch a default startup script or to view it in the visual editor when switched. I've shared my param file that is injected into nodejs (most of it is working except the startup script on server or into the visual editor). Any thoughts on how to do this, what i'm doing wrong, or plug-in, script techniques to do this. Humbly grateful for any good advice.

Many thanks in advance

Karl

## Config snippet in nodejs (injected into node red init process

var settings = {  
httpAdminRoot:"/red",  
httpNodeRoot: "/api",  
userDir:"/data/app/home/nol/.nodered/",  
nodesDir:"/data/app/home/nol/.nodered/nodes",  
flowFile:"core.js",  
functionGlobalContext: { }, // enables global context  
editorTheme: {  
header: {  
title: "my visual orchestrator",  
image: "/data/app/files/images/mygif.gif", // or null to remove image  
url: "[http://www.mysite.com](http://www.mysite.com)" // optional url to make the header text/image a link to this url  
},  
projects: {  
enabled: true  
},  
page: {  
title: "my visualizer",  
scripts: ["/data/app/home/nol/.nodered/core.js"]  
}  
}  
};

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 April 2020 11:34 UTC](https://discourse.nodered.org/t/startup-json-script-on-node-red-server-start-and-to-view-in-editor-also/21394/2 "2020-04-07T11:34:15Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
