Connect Repo to subdomain and domain

Hi everyone,

firstly, thank you for offering a great solution with bitbucket.

I'm very new git/Bitbucket and still sorting things.

My question:

Is it possible to connect my bitbucket versions/account to my webspace (subdomain and domain) ?

My logic says that developing with a versioning tool and then publishing the website by hand is not the correct way.

I have a domain and a subdomain. Of course I'm developing on the subdomain, and when I'm finished I want to publish/redirect/deploy (or whatever it is called) to my main domain.

I've seen that it is possible to host a statis website on bitbucket, but thats not what I want, since I'm using PHP/MYSQLI and JS.

Also I've tried to set the cname record in my domain panel to accountname.bitbucket.org. but it ends up with a 404 error.

I would highly appreciate if someone could point me in the right direction, since this bitbucket service turns out to be the best finding of last couple of years :D

Thank you for any hints

Best Regards

Toby

1 answer

0 votes
Jason Worley Atlassian Team Oct 27, 2013

Excerpt from our documentation:

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:

•http://accountname.bitbucket.org/subdir1forproject1

•http://accountname.bitbucket.org/subdir2forproject2

•http://accountname.bitbucket.org/subdir3forproject3

Each project sub-sirectory would act as a self-contained website with its own index.html.

Bitbucket is forgiving with regard to trailing slashes: a request to http://accountname.bitbucket.org/projectX/ with result inprojectX/index.html being served (if such a file exists), regardless of whether the trailing slash is included in the URL.

Full details available here:

https://confluence.atlassian.com/display/BITBUCKET/Publishing+a+Website+on+Bitbucket

Hi Jason, thank you for your answer. Unfortunately I'm not lacking of resources.. I'm looking forward to control the different versions of my website with bb/git. Not simply host a static website.

Please correct me if I'm wrong here:

Develop Project on local machine >> push to bb/repo >> and then??? It sits on some webspace.. How can I deploy it when I'm finished.

It's wrong to put all effort in some version control and then publish it by pushing it MANUALLY on MY FTP - isn't it?

Best Redards

Toby

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 08, 2018 in Teamwork

If you could delete any meeting from your calendar, which one would it be?

Let’s face it: most of us have too many meetings on our calendars. And few things are a bigger waste of time than recurring meetings that no longer provide any value to attendees (or the busines...

574 views 16 9
Join discussion

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