Question

I have a shared web host and I am trying to figure out a way to download the latest copy of a private project from bitbucket onto the server.

The server does not have any versioning tools installed, but it does have scp and ssh with a jailshell level of access. It also has wget and curl...

Can I can do something like this?


scp ssh://hg@bitbucket.org/jespern/testrepo ~/public_html

I don't have a problem setting up the identity files / DSA keys, but I'm not exactly sure how the protocols are put together here so I need some help with the basic syntax.

Or, if scp is not the way to go, does ssh have an option for doing this? or is it possible to use CURL or wGet to grab the latest version of the repository and then reconstruct it on the server?

I am sure there is a way to do this, so please don't respond saying "it can't be done."

Thanks!

Was it helpful?

Solution

You can download from bitbucket using either http with URL like this:

Notice how tip can be used in place of a revision ID in that URL form to always get the latest snapshot.

Alternately, you can just install Mercurial in your home directory on the shared web host -- people have succeeded in doing that on almost every webhost out there no matter how locked down they are.

Then you can just do: /home/me/bin hg clone ssh://hg@bitbucket.org/jespern/testrepo ~/public_html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top