Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Automating FTP deploy?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
hackologist  
View profile  
 More options Mar 4 2011, 2:25 pm
From: hackologist <a.atee...@gmail.com>
Date: Fri, 4 Mar 2011 11:25:17 -0800 (PST)
Local: Fri, Mar 4 2011 2:25 pm
Subject: Automating FTP deploy?

Hi

We are a small development team and have recently started using bitbucket
for a website development project.
The repository contains all the files for the website (.html, .css, .png
etc).

In our current work flow, after commits are pushed to the repository, the
commiter copies his/her local copy of the repository onto our development
server. As you can see, this is tedious and laggy. I wanted to automate this
process so that each time the bitbucket repository is changed our web server
updates to this copy. I am quite new to this, so any help/hints would be
appreciated.

Thanks
Asad


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hackologist  
View profile  
 More options Mar 7 2011, 6:51 pm
From: hackologist <a.atee...@gmail.com>
Date: Mon, 7 Mar 2011 15:51:46 -0800 (PST)
Local: Mon, Mar 7 2011 6:51 pm
Subject: Re: Automating FTP deploy?

Is the silence indicative of how boringly easy this is to achieve or is it
so hard that nobody knows how to achieve this? :P


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Geisler  
View profile  
 More options Mar 8 2011, 2:49 am
From: Martin Geisler <m...@aragost.com>
Date: Tue, 08 Mar 2011 08:49:21 +0100
Local: Tues, Mar 8 2011 2:49 am
Subject: Re: [Bitbucket] Automating FTP deploy?

hackologist <a.atee...@gmail.com> writes:
> Hi

> We are a small development team and have recently started using
> bitbucket for a website development project. The repository contains
> all the files for the website (.html, .css, .png etc).

> In our current work flow, after commits are pushed to the repository,
> the commiter copies his/her local copy of the repository onto our
> development server. As you can see, this is tedious and laggy. I
> wanted to automate this process so that each time the bitbucket
> repository is changed our web server updates to this copy. I am quite
> new to this, so any help/hints would be appreciated.

You can make Bitbucket "ping" a URL of your choice when changesets are
pushed to it. This means that Bitbucket will make a HTTP POST request to
your URL and that can then in turn trigger whatever update process you
need. So you might setup

  http://example.com/update.php

to receive the pings and that PHP script will then download

  https://bitbucket.org/<user>/<repository>/get/tip.zip

and unpack it on your server. See the Bitbucket documentation:

  http://confluence.atlassian.com/display/BITBUCKET/Setting+Up+the+Bitb...

Personally, I would go for a simpler solution where I just add a script
to the repository that the developers can execute that to upload the
working copy to the web server as needed. That is simpler and more
flexible since it lets you quickly deploy any revision on the server:

  $ hg update version-2.0
  $ deploy.sh

--
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/en/services/mercurial/blog/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hackologist  
View profile  
 More options Mar 9 2011, 7:28 pm
From: hackologist <a.atee...@gmail.com>
Date: Wed, 9 Mar 2011 16:28:25 -0800 (PST)
Local: Wed, Mar 9 2011 7:28 pm
Subject: Re: [Bitbucket] Automating FTP deploy?

Personally, I would go for a simpler solution where I just add a script
to the repository that the developers can execute that to upload the
working copy to the web server as needed. That is simpler and more
flexible since it lets you quickly deploy any revision on the server:

Can you please elaborate? Any tutorials/articles on how to achieve this?

Thanks!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Martin Geisler  
View profile  
 More options Mar 10 2011, 2:28 am
From: Martin Geisler <m...@aragost.com>
Date: Thu, 10 Mar 2011 08:28:52 +0100
Local: Thurs, Mar 10 2011 2:28 am
Subject: Re: [Bitbucket] Automating FTP deploy?

hackologist <a.atee...@gmail.com> writes:
>> Personally, I would go for a simpler solution where I just add a
>> script to the repository that the developers can execute that to
>> upload the working copy to the web server as needed. That is simpler
>> and more flexible since it lets you quickly deploy any revision on
>> the server:

> Can you please elaborate? Any tutorials/articles on how to achieve
> this?

Well, you "just do it" :) You find a FTP client (as FTP is an insecure
protocol you should see if you can use something better, such as SSH
(secure copy)) that you can run from the command line and then make a
script that invokes it.

If the server supports it, then I would go for rsync. Make a small
script that calls rsync with the right parameters and then have the
developers fire that away when they want to deploy their working copy on
the server.

--
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/en/services/mercurial/blog/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Len Damico  
View profile  
 More options Oct 3 2012, 12:38 am
From: Len Damico <lendam...@gmail.com>
Date: Tue, 2 Oct 2012 21:38:07 -0700 (PDT)
Local: Wed, Oct 3 2012 12:38 am
Subject: Re: [Bitbucket] Automating FTP deploy?

Here's a pretty simple
explanation: http://www.stephenradford.me/blog/tutorials/deploy-via-bitbucket-or-g...

Hope that helps!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Radford  
View profile  
 More options Nov 6 2012, 4:14 pm
From: Stephen Radford <steve22...@gmail.com>
Date: Tue, 6 Nov 2012 13:14:54 -0800 (PST)
Local: Tues, Nov 6 2012 4:14 pm
Subject: Re: [Bitbucket] Automating FTP deploy?

Cheers for the plug Len!

I've moved away from this script now that I've finalised http://ftploy.com
and released a public beta.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »