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!
Search found 12 matches
- Wed Apr 21, 2021 12:16 am
- Forum: Node.js scripting
- Topic: Problems Downloading Zip Files
- Replies: 2
- Views: 3712
- Sat Apr 10, 2021 1:17 am
- Forum: Node.js scripting
- Topic: Problems Downloading Zip Files
- Replies: 2
- Views: 3712
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...
- Fri Apr 09, 2021 11:47 pm
- Forum: Node.js scripting
- Topic: Loop through array!
- Replies: 3
- Views: 4474
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...
- Wed Feb 24, 2021 12:37 am
- Forum: Node.js scripting
- Topic: switchScriptTool --pack
- Replies: 6
- Views: 6932
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.
- Tue Feb 23, 2021 11:23 pm
- Forum: Node.js scripting
- Topic: switchScriptTool --pack
- Replies: 6
- Views: 6932
switchScriptTool --pack
Does anyone know the importance of packing up a node script using the switchScriptTool --pack vs just using the script folder?
- Tue Feb 23, 2021 10:32 pm
- Forum: Node.js scripting
- Topic: Connect to MSSQL - to ODBC or not to ODBC?
- Replies: 2
- Views: 4840
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.
This is a great ORM for node. It will connect to a mssql db and return an object.
- Fri Feb 12, 2021 10:48 pm
- Forum: Node.js scripting
- Topic: send to another flow
- Replies: 2
- Views: 3593
Re: send to another flow
ok great, thanks!
- Wed Feb 10, 2021 1:31 am
- Forum: Node.js scripting
- Topic: send to another flow
- Replies: 2
- Views: 3593
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.
- Mon Feb 08, 2021 9:07 pm
- Forum: Node.js scripting
- Topic: Versioning scripts & Builds
- Replies: 7
- Views: 10840
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...
- Tue Feb 02, 2021 3:38 pm
- Forum: Node.js scripting
- Topic: Versioning scripts & Builds
- Replies: 7
- Views: 10840
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 ...
- Tue Feb 02, 2021 12:28 am
- Forum: Switch
- Topic: Deploying to production?
- Replies: 0
- Views: 9183
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.
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.
- Tue Feb 02, 2021 12:25 am
- Forum: Node.js scripting
- Topic: Versioning scripts & Builds
- Replies: 7
- Views: 10840
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...