[Feature]: Use branch name as subdomain #3131
Replies: 12 comments 3 replies
-
I think just branchname might get too vague as branchnames can easily conflict. |
Beta Was this translation helpful? Give feedback.
-
I think i already saw a feature request for multiple domains on the same app/service, that would already help alot. In our case the yourdomain.com part is already different for each app so there won't be any overlapping. But if not, it should be more generic with added appname part. ie: https://org-branch-repo.yourdomain.com next to org-commit-repo.yourdomain.com |
Beta Was this translation helpful? Give feedback.
-
One approach I see elsewhere is to use the short commit id (e.g. 1a2b3c) followed by the branch name (but truncated to a maximum amount of characters) replacing any _ or space with - . e.g. This would significantly reduce the chance of conflicts while also keeping preview domains relevant and easy to identify. |
Beta Was this translation helpful? Give feedback.
-
Is this about PRs or am I missing something? If so, I agree with @martijnmichel and the branch-name but along with the PR number, e.g. this PR #1095 could be called Building on @ChronSyn's idea, a neat feature along with this would be the ability use variables:
Taking the liberty to ping @andrasbacsai (GH needs a |
Beta Was this translation helpful? Give feedback.
-
I am actually talking about viewing commits on different urls. While actually this also includes a deploy of a PR (be it as latest commit into the branch that the PR is about). For instance I recently made a small update on our starter template updating to next 13 in branch next13. It is avail on the following urls: Would love to see this also in v4 as it makes finding/testing branches super easy accross teams. |
Beta Was this translation helpful? Give feedback.
-
Ah, gotcha! But honestly I don't really see the use-case, now. I'm wondering, wouldn't branching out again solve that issue? This way it's also possible to make multiple changes that don't follow each other completely 🤔 |
Beta Was this translation helpful? Give feedback.
-
Sorry, I've explained wrongly, it's about branches. In those url's the first one holds all the latest commits to that branch. That way, while developing on a branch, you can always go to that same url (or give it to your clients) and it will be your latest dev code in that branch. |
Beta Was this translation helpful? Give feedback.
-
Is that to "hide" the new changes from a client? Otherwise I don't see a need to change the URL every commit 🤔 I mean, the URL will always change on each commit 🤷 Should old URLs be saved for history purposes, or always generate a new? |
Beta Was this translation helpful? Give feedback.
-
To chime in on that, I'm looking to use a branch without the need to create a PR. For Vercel it's basically |
Beta Was this translation helpful? Give feedback.
-
Ah, yeah. I agree, my old comments on PRs should be read as branches. I'm just horrible at explaining |
Beta Was this translation helpful? Give feedback.
-
I feel like it could be settings like this, allowing you to set the subdomains dynamically: Deployment
|
Beta Was this translation helpful? Give feedback.
-
@peaklabs-dev why was this downgraded from an issue (feature request) to a discussion? |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Summary
It would be great to be able to access the latest push to a branch through a named url on your coolify deploy. (just like vercel recently added)
Ie: having a branch name "coolify" would have the latest preview deploys of your repo at https://coolify.yourdomain.com or with generic name https://coolify-git.yourdomain.com https://coolify-anythingyouchoose.yourdomain.com
Why should this be worked on?
It greatly improves team/customer work.
Beta Was this translation helpful? Give feedback.
All reactions