[geeks] website deployment

Joshua Boyd jdboyd at jdboyd.net
Thu Nov 17 13:21:34 CST 2016


I use Ansible for that sort of task.  Ansible is a bit more general 
purpose than just pushing websites (also made for many other sorts of 
deployment/maintenance tasks), but it makes pushing websites pretty 
simple.  Ansible depends on the remote computer having ssh and 
preferably Python 2.x installed.  The Python is optional, but it isn't 
as nice with out it.

For Ansible, you would probably have 3 text files, something like 
website.yml, hosts-staging, and hosts-active.

website.yml might look like:
---
- hosts: website-frontend
  tasks:
  - name: copy standard data
    synchonize:
      src: ./
      dest: /var/html/whatever
      rsync_opts:
      - "--exclude=.git"
  - name: Copy secret data
    action: copy src=db-secrets.conf 
dest=/var/html/whatever/secrets.conf

Then, the two hosts files would look like:
[website-frontend]
staging-server.example.com

There is a lot information out there about using ansible.



On Tue, Nov 15, 2016 at 9:55 AM, Charles Shannon Hendrix 
<shannon at widomaker.com> wrote:
> I want to find a reliable command-line program for deploying a 
> website to both staging and active servers.
> 
> So far I have tried dploy, and hugodeploy.
> 
> dploy works well enough, but requires you to use git, and there are 
> some sites I donbt store in git, and dploy is unable to push a site 
> that isnbt under revision control. Its also horribly slow.
> 
> hugodeploy used to be a nice website pusher, but it has stopped 
> working, and I donbt know enough go to debug it, and the author 
> appears to be silent.
> 
> If any of you have an automated website publisher you like Ibd love 
> to hear about it.
> 
> Thanks.
> _______________________________________________
> GEEKS:  http://www.sunhelp.org/mailman/listinfo/geeks


More information about the geeks mailing list