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

Connect Repo to subdomain and domain

Tobias Hopp October 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
AgentSmith
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 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 November 2, 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
TAGS
AUG Leaders

Atlassian Community Events