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

Publishing a React Website on Bitbucket Cloud

Kenneth Mulhern March 31, 2022

Hi guys,

 

Im trying to Publish/Host a ReactJS project on Bitbucket. The project was bootstrapped using create react app therefore the index.html file is within a public folder I.e. root/public/index.html.

 

I followed the instruction on https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/ but I can’t seem to get the site to show.

 

The url that Ive tried is [workspaceID]/ui-library.bitbucket.io and [workspaceID]/ui-library.bitbucket.io/public (ui-library being the repo name). Both of these just return ‘repo not found’ or google search results.

 

Am I doing something wrong here? I’m new to Bitbucket, I previously use GitHub and GitHub Pages for things like this. 

 

Thanks….

1 answer

0 votes
seanaty
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2022

It's a bit confusing... to host a public site the workspace name essentially needs to be a part of the repository name :)

 

If my workspace slug (what you see in the URL) is "foo" then I need to create a repository with the exact name "foo.bitbucket.io". It looks like a URL and it is a URL but the same string of text is also the name of the repository.

In summary:

workspace name: foo

repository name (and slug): foo.bitbucket.io

How to access the site http://foo.bitbucket.io/

seanaty
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2022

@Kenneth Mulhern please accept this answer if it helps you :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events