How to hosting multiple projects under a single website

toplez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2018

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:

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 in projectX/index.htmlbeing served (if such a file exists), regardless of whether the trailing slash is included in the URL.

when I try but doesn't work

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 14, 2018

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

toplez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 14, 2018

I want to have 2 repos or more to have accessible HTML, but it should from different repos. Is it possible?

Noel Golding
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2018

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

Like antoniocosta likes this
thaina June 26, 2018

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

Thomas Haukland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 5, 2018

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)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events