Can I host different version of my static website using git branch as the subdomain or prefix ?

Right now I see that <accountname>.bitbucket.io  points to my master branch.

Do I have the ability to point different versions of the web site with /master being the default?

For example 

<branch name>.<account name>.bitbucket.io 

or

<account name>.bitbucket.io/<branch name> 

 

Thanks 

1 answer

0 votes

Hi Vinay! What you can do is to place each of the versions in a repository subdirectory. For example:

  • 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. For more information on how to do this, you can read the section "Hosting mulitple projects under a single website" at Publishing a website.

Hope this helps :) 

Ana

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 12 hours ago in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

16 views 0 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you