filesite
6 months ago
10 changed files with 48 additions and 10 deletions
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
//Documents: https://ulixee.org/docs/cloud/modules/cloud-node#constructor
|
||||
import { CloudNode } from '@ulixee/cloud'; |
||||
|
||||
(async () => { |
||||
const cloudNode = new CloudNode({ |
||||
port: 1818, |
||||
cloudType: 'private' |
||||
}); |
||||
await cloudNode.listen(); |
||||
console.log(`CloudNode started on port ${await cloudNode.port}`); |
||||
})().catch(error => { |
||||
console.log('ERROR starting Ulixee CloudNode', error); |
||||
process.exit(1); |
||||
}); |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh |
||||
|
||||
|
||||
# start cloud |
||||
#npx @ulixee/cloud start |
||||
node cloud.mjs |
||||
|
Loading…
Reference in new issue