Search found 12 matches

by stargazerllc
Wed Apr 21, 2021 12:16 am
Forum: Node.js scripting
Topic: Problems Downloading Zip Files
Replies: 2
Views: 3552

Re: Problems Downloading Zip Files

Ended up being the way the Zip file was created on our servers. Switch is on a windows VM and my dev env is a MAC. The windows issue made me think it was a switch problem.

Thanks for the input!
by stargazerllc
Sat Apr 10, 2021 1:17 am
Forum: Node.js scripting
Topic: Problems Downloading Zip Files
Replies: 2
Views: 3552

Problems Downloading Zip Files

Has anyone had any issues downloading zip files using the normal node.js request packages (node-fetch, axios etc.) ? I have a node script that has a part to download a zip file. It works in local env and independent of the switch ecosystem but when I move it into a script file the download is always...
by stargazerllc
Fri Apr 09, 2021 11:47 pm
Forum: Node.js scripting
Topic: Loop through array!
Replies: 3
Views: 4402

Re: Loop through array!

Using the array functions instead of for each might be a better solution. The most common are .map(), .forEach() and .reduce() Reference https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array const myArr = [val1, val2, val3] const functionThatProcessesEachValueIndivid...
by stargazerllc
Wed Feb 24, 2021 12:37 am
Forum: Node.js scripting
Topic: switchScriptTool --pack
Replies: 6
Views: 6850

Re: switchScriptTool --pack

thanks, I thought I looked all through that and didn't find a good list. I guess I missed it. That list looks like a good explanation.
by stargazerllc
Tue Feb 23, 2021 11:23 pm
Forum: Node.js scripting
Topic: switchScriptTool --pack
Replies: 6
Views: 6850

switchScriptTool --pack

Does anyone know the importance of packing up a node script using the switchScriptTool --pack vs just using the script folder?
by stargazerllc
Tue Feb 23, 2021 10:32 pm
Forum: Node.js scripting
Topic: Connect to MSSQL - to ODBC or not to ODBC?
Replies: 2
Views: 4577

Re: Connect to MSSQL - to ODBC or not to ODBC?

https://sequelize.org/

This is a great ORM for node. It will connect to a mssql db and return an object.
by stargazerllc
Fri Feb 12, 2021 10:48 pm
Forum: Node.js scripting
Topic: send to another flow
Replies: 2
Views: 3548

Re: send to another flow

ok great, thanks!
by stargazerllc
Wed Feb 10, 2021 1:31 am
Forum: Node.js scripting
Topic: send to another flow
Replies: 2
Views: 3548

send to another flow

Does anyone know of a way to send a job to another flow using a node.js script package? I didn't see anything in the docs.
by stargazerllc
Mon Feb 08, 2021 9:07 pm
Forum: Node.js scripting
Topic: Versioning scripts & Builds
Replies: 7
Views: 10289

Re: Versioning scripts & Builds

I apologize for the late reply but I have been testing some devFlow stuff and trying to understand switch more. So to put it in perspective I'm working with a print house that has a large set of workflows and multiple maintainers. This leads to inconsistencies in many different areas. I am working o...
by stargazerllc
Tue Feb 02, 2021 3:38 pm
Forum: Node.js scripting
Topic: Versioning scripts & Builds
Replies: 7
Views: 10289

Re: Versioning scripts & Builds

Patrik, Thanks for the great write up. I think this is similar to what I was thinking was going to have to be done but I really hoped I was missing something. "unfortunately Switch doesn't yet provide tools to e.g. load balance and sync flows between several Switch installations" It seems ...
by stargazerllc
Tue Feb 02, 2021 12:28 am
Forum: Switch
Topic: Deploying to production?
Replies: 0
Views: 8671

Deploying to production?

How do you deploy to production? I am looking for ways to create a "protected' production env.

Ideally this would be out of a docker container that could spin up a windows box with switch? Im not finding a lot of info surrounding the devops side of Switch.
by stargazerllc
Tue Feb 02, 2021 12:25 am
Forum: Node.js scripting
Topic: Versioning scripts & Builds
Replies: 7
Views: 10289

Versioning scripts & Builds

I understand the concept of script folders vs built/packaged .sscript files. What I don't get is the development process they want people to follow. Let's say I have a project that holds all of the script folders that I use in a project. This is fairly large 200+ scripts. 1. Each has its own develop...