CA
Crawlee & Apifyโ€ข2y ago
correct-apricot

Example monorepo repository + CLI for deployments

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:
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
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
5 Replies
MEE6
MEE6โ€ข2y ago
@shovelandsandbox just advanced to level 2! Thanks for your contributions! ๐ŸŽ‰
correct-apricot
correct-apricotOPโ€ข2y ago
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...
Pepa J
Pepa Jโ€ข2y ago
Hi @shovelandsandbox , 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.
correct-apricot
correct-apricotOPโ€ข2y ago
Okay great, @Pepa J โ€“ thank you for the heads up. ๐Ÿ™‚ Is there a best channel to follow / watch for monorepo-specific bugs being addressed?
Pepa J
Pepa Jโ€ข2y ago
@shovelandsandbox 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
GitHub
Issues ยท apify/actor-monorepo-example
An example repository with multiple Apify Actors sharing code between each other. - Issues ยท apify/actor-monorepo-example

Did you find this page helpful?