poad 2.5.9 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/global/init.js +1 -0
- package/global/install.js +1 -1
- package/global/start.js +1 -1
- package/package.json +2 -1
- package/poad/config.toml +20 -0
- package/poad.js +1 -1
package/global/init.js
CHANGED
|
@@ -24,6 +24,7 @@ module.exports = async (args) => {
|
|
|
24
24
|
config.project_uuid = generateUniqueId();
|
|
25
25
|
await fs.mkdir(path.join(process.cwd(), 'poad', 'data'), { recursive: true });
|
|
26
26
|
const ports = await findFreePorts(4);
|
|
27
|
+
config.engine = global.package.engine;
|
|
27
28
|
config.db = {
|
|
28
29
|
port: ports[0],
|
|
29
30
|
};
|
package/global/install.js
CHANGED
|
@@ -4,7 +4,7 @@ module.exports = async (args) => {
|
|
|
4
4
|
const cliProgress = require('cli-progress');
|
|
5
5
|
|
|
6
6
|
const docker = new Docker();
|
|
7
|
-
const imageName = 'poadio/engine:
|
|
7
|
+
const imageName = 'poadio/engine:' + global.package.engine;
|
|
8
8
|
const platform = 'linux/amd64';
|
|
9
9
|
|
|
10
10
|
// Create a new progress bar
|
package/global/start.js
CHANGED
package/package.json
CHANGED
package/poad/config.toml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
project_id = "cli"
|
|
2
|
+
project_uuid = "yb3ds1bcwfaifz5s6j4g"
|
|
3
|
+
engine = "0.5.3"
|
|
4
|
+
[db]
|
|
5
|
+
port = 3356
|
|
6
|
+
[web]
|
|
7
|
+
port = 58170
|
|
8
|
+
[s3]
|
|
9
|
+
port = 52426
|
|
10
|
+
access_key = "0f94767ec7272a5f10cc6b9d0154b89d7f62e544283d01b2b9ae516f45fe41b0"
|
|
11
|
+
secret_key = "4102914c2de34646b6502c447a68f66ed5189c17bc8836e63d0f158e0943bf8f"
|
|
12
|
+
region = "local"
|
|
13
|
+
[inbucket]
|
|
14
|
+
port = 24038
|
|
15
|
+
[auth]
|
|
16
|
+
jwt_expiry = 3600
|
|
17
|
+
secret = "8c54c57efafd419788d56fbd54fd2f4d13bcdc0d50d7d9110b6aaf9a01758c2d"
|
|
18
|
+
anon = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InBvYWQiLCJpYXQiOjE3MjkzNjE5NDh9.OIv7JSYowOQimi4fSFZ3CZDzTUA1Eh6yuZNQSz-DQDI"
|
|
19
|
+
service = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZSIsImlzcyI6InBvYWQiLCJpYXQiOjE3MjkzNjE5NDh9.6xTSE2ZBQaaIIugAQkHE0ZMgmCiBCOa5P0aa6IT0hrg"
|
|
20
|
+
admin = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYWRtaW4iLCJpc3MiOiJwb2FkIiwiaWF0IjoxNzI5MzYxOTQ4fQ.jHDr_3Cwyz_HtJhyzc2UbGLjBRtEHpZ4MuOelwOCFzE"
|
package/poad.js
CHANGED
|
@@ -16,7 +16,7 @@ const { findPoadDir } = require('./utils/findpoad');
|
|
|
16
16
|
|
|
17
17
|
const packageJsonPath = path.join(__dirname, 'package.json');
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
global.package = require(packageJsonPath);
|
|
20
20
|
let args = process.argv.slice(2);
|
|
21
21
|
|
|
22
22
|
// Function to check internet connection
|