Does anyone know if it's possible (or will be in the future) to add multiple code providers to a single account in envoyer? I searched on here and googled and couldn't find an answer. I have a situation where I have 2 separate bitbucket accounts that I would like to deploy from. These accounts cannot be combined. I know I could just create 2 separate envoyer accounts as well, but I would rather keep them together. Plus, I only have 3 projects right now that could benefit from envoyer (6 if I do both staging and production), so it seems like a waste to have 2 accounts for this.
In Envoyer, a Project is essentially a link between a source of code and 1 or more servers you want that code to be deployed to. You can add multiple servers to each project and you can denote whether or not that server should receive code deployments or not. (Sometimes you just want them there so you can perform deployment hooks such as running a database migration on multiple database servers).
It's not possible to have one project containing multiple GIT sources for it's code because there is no way to merge the code down. That's what Composer (or a hook during deployment) is for (where your hook can be to pull in code from another Repo..still not sure why you would want to do this).
You can create as many Projects as your plan allows and you can even have them deploy to the same server (under different directories). So for example if I had a Laravel App for my main app and a Lumen app for a set of API end points, I would setup two projects for deployment from the two different GIT sources. I could then use a hook in my Laravel App to tell Envoyer to deploy my Lumen app as well, this way one deploys the other and if the other (Lumen in this case) fails, then it wouldn't complete the Laravel deployment and my apps would stay in sync.
I think using Projects in this way is your best bet for being able to pull code from multiple sources into one master app. The caveat I would give you is that I wouldn't try to deploy to a sub-directory of the current app because I am not sure how the symlinks would work out with that.
Oh, I definitely wouldn't use different code sources for a single project. What I want is this:
Project A is located on Bitbucket account A. I want to pull from that account for deployment of project A.
Project B is located on Bitbucket account B. I want to pull from that separate account B for deployment of project B.
Does that make sense? When you create a project, it lets you select via radio button the code provider to use. But there doesn't seem to be a way to add more than one code provider per account so you can select the one you want. I don't mind paying double to do this. Anything to help out Taylor and Laravel development. I would just rather manage all of my deployments in a single location.
When you add a Project with Enovyer you use the radio button to select the provider (GitHub, BitBucket, other)...then below you put the name of the Repo on the provider.
So you would choose BitBucket for both projects. On Project A you would put bitbucketaccount/projecta and on the other Project you would use bitbucketaccount/projectb.
That still wouldn't give me what I want. I have two completely separate Bitbucket accounts. One is for work and it contains a variety of work related repos. The other account (using a separate Bitbucket login) is for my personal projects, and it contains a completely separate set of repos. I cannot combine all these repos under a single Bitbucket account.
I want to be able to deploy both work repos and personal repos from a single Envoyer account. But Envoyer only lets you link up a single Bitbucket account at a time. If I could link up multiple accounts, then I could use the same Envoyer account to deploy all of my projects. I know it seems weird to need separate Bitbucket accounts for work/personal, but a common envoyer account for both. But it would help me quite a bit if I can have it this way. Otherwise I will just need to pay for two different Envoyer accounts. I'm not against paying more, it would just be nice to manage all deployments from a single location.
Sorry, I didn't realize you were talking about different BitBucket accounts. There is no way to attach two separate BitBucket accounts with separate Login's in Envoyer that I am aware of. Perhaps that should be a feature request you place with Taylor Otwell.
The only other option you have (and what I do) to accomplish this is that I logged into my work BitBucket account (where I have admin privileges) and I added my personal account as a team member (read only access) to my work repos. (or you could log into your home account and give your work account read-only access to your home account repos). Then your repos will show up in both accounts.
There's now way to do with without sharing the repos between both accounts. But by doing a read-only share it's enough for envoyer (who only needs read-only access) to be able to see your repo under the one account.
Yeah, I sent in a request to Taylor about this but haven't heard back yet. I'm sure he's super busy with the release of 5.1, so I'm not worried about it.
I hadn't even thought about doing it the way you describe, but that sounds like it will work well for me. I'll try it out, and if it just doesn't work the way I want it to, I'll pony up and get 2 envoyer accounts. Like I said, I don't mind paying more. ;)