Using Bazaar with Web Development

Asked by Nicky Hajal

I imagine this is a pretty basic question but I haven't been able to find an answer anywhere.

I develop websites. In the past I've handled all the live files manually and it stinks, of course. I've been hoping Bazaar could add some power and organization to the way we work.

Right now, I work with a local server on my laptop and want to gracefully push data onto the live server. Currently, I'm doing the following:

Local machine:

bzr push sftp://user@server/path/to/project/BZR/live

On server:

rm -r /path/to/project/live
bzr branch /path/to/project/BZR/live

---

Is there anyway to get the Local files live from the push?

Otherwise, is a branch to the live path correct?

Is there anyway to get Bazaar to just update changed files in the live path so that I don't have to delete /live each time?

Right now I have to manually edit .htaccess with each upload. If I didn't have to delete /live, I imagine I could tell bzr to ignore it and all would take care of itself.

Thanks for your help!

-Nicky

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
EmmaJane (emmajane) said :
#1

Nicky,

Do you know about the Upload plugin? It's what I use. You may find it solves your problem. There are usage instructions here:
http://bazaar-vcs.org/BazaarUploadForWebDev

Revision history for this message
Aliaksei Vasileuski (sagara1337) said :
#2

"export" is better suited than "branch" e.g. it does not create .bzr folder.

Revision history for this message
Vincent Ladeuil (vila) said :
#3

@Nishi: The bzr-upload plugin is even better as it it uploads only the modified files (tracking renames and deletions) and still doesn't create the .bzr folder.

An alternative to bzr-upload is the push-and-update plugin (also documented: http://wiki.bazaar.canonical.com/BazaarForWebDevs).

But I think EmmaJane is right: the bzr-upload plugin seems more appropriate for Nicky.

Revision history for this message
ToniMueller (support-oeko) said :
#4

I use a project-specific Makefile that does a bit of bookkeeping and makes sure that I put only committed stuff on a server, and that bails out if the tree has uncommitted changes. The actual syncing to the server is then done with a bit of rsync and ssh -e 'chmod' and similar commands from the Makefile. This allows me to say "make deploy-XYZ" or similar to get a new version of stuff online.

Can you help with this problem?

Provide an answer of your own, or ask Nicky Hajal for more information if necessary.

To post a message you must log in.