apify-cli 0.8.0-beta.2 → 0.8.0-beta.3
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/package.json +1 -1
- package/src/commands/push.js +10 -5
package/package.json
CHANGED
package/src/commands/push.js
CHANGED
|
@@ -13,6 +13,11 @@ const { transformEnvToEnvVars } = require('../lib/secrets');
|
|
|
13
13
|
const outputs = require('../lib/outputs');
|
|
14
14
|
|
|
15
15
|
const TEMP_ZIP_FILE_NAME = 'temp_file.zip';
|
|
16
|
+
const DEFAULT_RUN_OPTIONS = {
|
|
17
|
+
build: 'latest',
|
|
18
|
+
memoryMbytes: 4096,
|
|
19
|
+
timeoutSecs: 3600,
|
|
20
|
+
};
|
|
16
21
|
|
|
17
22
|
class PushCommand extends ApifyCommand {
|
|
18
23
|
async run() {
|
|
@@ -43,16 +48,16 @@ class PushCommand extends ApifyCommand {
|
|
|
43
48
|
actorId = actor.id;
|
|
44
49
|
} else {
|
|
45
50
|
const { templates } = await actorTemplates.fetchManifest();
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
const actorTemplate = templates.find((t) => t.name === localConfig.template);
|
|
52
|
+
const defaultRunOptions = actorTemplate.defaultRunOptions || DEFAULT_RUN_OPTIONS;
|
|
48
53
|
const newActor = {
|
|
49
54
|
name: localConfig.name,
|
|
50
|
-
defaultRunOptions
|
|
55
|
+
defaultRunOptions,
|
|
51
56
|
versions: [{
|
|
52
57
|
versionNumber: version,
|
|
53
58
|
buildTag,
|
|
54
|
-
sourceType: ACT_SOURCE_TYPES.
|
|
55
|
-
|
|
59
|
+
sourceType: ACT_SOURCE_TYPES.SOURCE_FILES,
|
|
60
|
+
sourceFiles: [],
|
|
56
61
|
}],
|
|
57
62
|
};
|
|
58
63
|
actor = await apifyClient.actors().create(newActor);
|