Apify Discord Mirror

Updated 5 months ago

Example monorepo repository + CLI for deployments

At a glance

The community members discuss an issue with using the apify push command in a monorepo setup. The example monorepo provided does not cover how to properly use this command, as it only works from the root of the repository, but results in an "undefined" actor being created. One community member wants to push their actor source from the actors/playstation-store folder to an existing actor on the platform, but is unsure if they should be using the apify push command at all if they are using a GitHub repository for their actor's source.

The Apify team acknowledges the issue with apify push not working correctly with monorepos, but states that building the actor from the Git repository should not cause any issues. They suggest the community members search for "monorepo" on the Discord channel or keep an eye on the issues in the actor-monorepo-example repository for updates on this topic.

Useful resources
The example monorepo (seen here: https://github.com/apify/actor-monorepo-example) doesn't cover how apify push is intended to be used – the only place you're able to use it is from the root of the repository, but doing it there shows the following in console:

Plain Text
apify push
Info: Created actor with name undefined on Apify.
Info: Deploying actor 'undefined' to Apify.
Run: Updated version 0.0 for my-actor-5 actor.
Run: Building actor my-actor-5
A
s
P
8 comments
just advanced to level 2! Thanks for your contributions! πŸŽ‰
is my-actor-5 a randomly generated name for the actor? And which actor / source is it pushing up to the platform?
I'd like for it to push up to my existing thesandbox/playstation-store actor (ID 2dA3K1R8bghweB2P2) – the corresponding source I'd like to be executed at that actor is in actors/playstation-store, and my actor's source is configured properly for using a monorepo. (branch is set, git url is correct, folder is set to actors/playstation-store
ooo, unless I shouldn't be using push from the CLI at all if I'm using github for an actor's source...
Hi , we are currently aware of this issue with apify-cli push not working with monorepos.
However you should not run into issues with building the actor from git repository.
Okay great, – thank you for the heads up. πŸ™‚
Is there a best channel to follow / watch for monorepo-specific bugs being addressed?
You may try to search for keyword "monorepo" here on discord, or I suggest you to keep eye on https://github.com/apify/actor-monorepo-example/issues
Add a reply
Sign up and join the conversation on Discord