Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to publish more than one repo to Bitbucket cloud

Will McMillian
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 19, 2019

I've read the docs here: https://confluence.atlassian.com/bitbucket/publishing-a-website-on-bitbucket-cloud-221449776.html

 

Which says: 

 

Hosting Multiple Projects Under a Single Website

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

 

Now, maybe I'm not familiar with all of bitbucket's functionality or terminology but I'm having trouble understanding this bit of documentation.

 

I've created a published main repo just fine by naming one accountname.bitbucket.io. However, I can't seem to create a subdirectory with a second repo.

 

I tried using the project name and naming a repo under that something like "accountname.bitbucket.io/project-name", but that didn't work. I tried uploading a git submodule, and that didn't work. I've tried just going to accountname.bitbucket.io/repo-name and that didn't work.

 

So I'm confused, is it even possible to publish multiple repos under one account?

1 answer

1 vote
Tyler T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 29, 2019

Hi Will,

If your index.html is working, adding folders to the main directory will create new webpages.

Example:

  • /index.html - main page
  • /web - new folder
  • /web/index.html - new index.html file in the new folder

When you visit accountname.bitbucket.io/web you will see the content from the index.html in the /web/ folder. I'll reach out to our team about updating the documentation to make it more clear. Hope this helps!

W_ AdT May 30, 2022

@Tyler T I think what he ask is 
can "accountname.bitbucket.io/ProjectX" host files from repository "ProjectX"?

 

So the answer is no?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Bitbucket Events