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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-cli",
3
- "version": "0.8.0-beta.2",
3
+ "version": "0.8.0-beta.3",
4
4
  "description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
- let actorTemplate = templates.find((t) => t.name === localConfig.template);
47
- if (!actorTemplate) [actorTemplate] = templates;
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: actorTemplate.defaultRunOptions,
55
+ defaultRunOptions,
51
56
  versions: [{
52
57
  versionNumber: version,
53
58
  buildTag,
54
- sourceType: ACT_SOURCE_TYPES.TARBALL,
55
- tarballUrl: actorTemplate.archiveUrl,
59
+ sourceType: ACT_SOURCE_TYPES.SOURCE_FILES,
60
+ sourceFiles: [],
56
61
  }],
57
62
  };
58
63
  actor = await apifyClient.actors().create(newActor);