I read this: https://confluence.atlassian.com/bitbucket/publishing-a-website-on-bitbucket-cloud-221449776.html
You may have multiple projects that you want to host from the same Bitbucket websites, you can do this by placing each project in a repository subdirectory. In this example, you would want to organize things such that you can point users to:
- https://accountname.bitbucket.io/subdir1forproject1
- https://accountname.bitbucket.io/subdir2forproject2
- https://accountname.bitbucket.io/subdir3forproject3
Each project sub-directory would act as a self-contained website with its own
index.html
.Bitbucket is forgiving with regard to trailing slashes: a request to
https://accountname.bitbucket.io/projectX/
with result inprojectX/index.html
being served (if such a file exists), regardless of whether the trailing slash is included in the URL.
when I try but doesn't work
Hi! I've checked your account and I can see one repo with the right name in the form accountname
.bitbucket.io,
but the other repo has not been named according to the convention. Keep in mind that each project needs to be placed in a repository subdirectory, so the final URL would look like https://accountname.bitbucket.io/projectX/.
If you're still having trouble, please let us know exactly what is not working for you, if you get any kind of error and send us a screenshot so we can see how it looks for you.
Kind regards,
Ana
I want to have 2 repos or more to have accessible HTML, but it should from different repos. Is it possible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have the same question. Let's say for example I have
repo1
repo2
repo3
myname.bitbucket.io
I want to expose repo1 and repo3 as static sites. What is the best practice to allow this? For example I would like the following urls
myname.bitbucket.io/index.html
myname.bitbucket.io/repo1/index.html
myname.bitbucket.io/repo3/index.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The problem is
What would happen if you just create folder named "repo1" in the repo "myname.bitbucket.io"
Access multiple repo leads to possible conflict
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Struggling with the same thing. It does NOT seem like its possible to host content from more than one repository using the same account, even though the documentation seems to indicate this.
My suspicion is its just the docs that are unclear on this(I could of course be bad at reading it, but that seems improbable ;-)
I would assume that every repo would be accessible(perhaps after switching a settings toggle) under account.bitbucket.io/reponame/, and that to host stuff at root you would create a "account.bitbucket.io" repo(this last item works as expected, but not the first)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.