Merge pull request #2436 from parkervcp/generic-nodejs
Generic Nodejs: allow for extra node args
This commit is contained in:
		
						commit
						f113607ad1
					
				@ -4,7 +4,7 @@
 | 
				
			|||||||
        "version": "PTDL_v2",
 | 
					        "version": "PTDL_v2",
 | 
				
			||||||
        "update_url": null
 | 
					        "update_url": null
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "exported_at": "2023-08-17T18:34:59-07:00",
 | 
					    "exported_at": "2023-08-18T17:13:50+02:00",
 | 
				
			||||||
    "name": "node.js generic",
 | 
					    "name": "node.js generic",
 | 
				
			||||||
    "author": "parker@parkervcp.com",
 | 
					    "author": "parker@parkervcp.com",
 | 
				
			||||||
    "description": "a generic node.js egg\r\n\r\nThis will clone a git repo. it defaults to master if no branch is specified.\r\n\r\nInstalls the node_modules on install. If you set user_upload then I assume you know what you are doing.",
 | 
					    "description": "a generic node.js egg\r\n\r\nThis will clone a git repo. it defaults to master if no branch is specified.\r\n\r\nInstalls the node_modules on install. If you set user_upload then I assume you know what you are doing.",
 | 
				
			||||||
@ -19,7 +19,7 @@
 | 
				
			|||||||
        "Nodejs 12": "ghcr.io\/parkervcp\/yolks:nodejs_12"
 | 
					        "Nodejs 12": "ghcr.io\/parkervcp\/yolks:nodejs_12"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "file_denylist": [],
 | 
					    "file_denylist": [],
 | 
				
			||||||
    "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then \/usr\/local\/bin\/npm install; fi; if [[ \"${MAIN_FILE}\" == \"*.js\" ]]; then \/usr\/local\/bin\/node \"\/home\/container\/${MAIN_FILE}\"; else \/usr\/local\/bin\/ts-node \"${MAIN_FILE}\"; fi",
 | 
					    "startup": "if [[ -d .git ]] && [[ {{AUTO_UPDATE}} == \"1\" ]]; then git pull; fi; if [[ ! -z ${NODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm install ${NODE_PACKAGES}; fi; if [[ ! -z ${UNNODE_PACKAGES} ]]; then \/usr\/local\/bin\/npm uninstall ${UNNODE_PACKAGES}; fi; if [ -f \/home\/container\/package.json ]; then \/usr\/local\/bin\/npm install; fi; if [[ \"${MAIN_FILE}\" == \"*.js\" ]]; then \/usr\/local\/bin\/node \"\/home\/container\/${MAIN_FILE}\" ${NODE_ARGS}; else \/usr\/local\/bin\/ts-node \"\/home\/container\/${MAIN_FILE}\" ${NODE_ARGS}; fi",
 | 
				
			||||||
    "config": {
 | 
					    "config": {
 | 
				
			||||||
        "files": "{}",
 | 
					        "files": "{}",
 | 
				
			||||||
        "startup": "{\r\n    \"done\": [\r\n        \"change this text 1\",\r\n        \"change this text 2\"\r\n    ]\r\n}",
 | 
					        "startup": "{\r\n    \"done\": [\r\n        \"change this text 1\",\r\n        \"change this text 2\"\r\n    ]\r\n}",
 | 
				
			||||||
@ -121,7 +121,17 @@
 | 
				
			|||||||
            "default_value": "index.js",
 | 
					            "default_value": "index.js",
 | 
				
			||||||
            "user_viewable": true,
 | 
					            "user_viewable": true,
 | 
				
			||||||
            "user_editable": true,
 | 
					            "user_editable": true,
 | 
				
			||||||
            "rules": "required|string",
 | 
					            "rules": "required|string|max:16",
 | 
				
			||||||
 | 
					            "field_type": "text"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            "name": "Additional Arguments.",
 | 
				
			||||||
 | 
					            "description": "Any extra arguments for nodejs or ts-node",
 | 
				
			||||||
 | 
					            "env_variable": "NODE_ARGS",
 | 
				
			||||||
 | 
					            "default_value": "",
 | 
				
			||||||
 | 
					            "user_viewable": true,
 | 
				
			||||||
 | 
					            "user_editable": true,
 | 
				
			||||||
 | 
					            "rules": "nullable|string|max:64",
 | 
				
			||||||
            "field_type": "text"
 | 
					            "field_type": "text"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user