It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Connect Repo to subdomain and domain

Tobias Hopp Oct 26, 2013

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

Tobias Hopp Nov 02, 2013

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

190 views 21 10
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you