deploy.sh/README

52 lines
1.6 KiB
Plaintext
Raw Normal View History

2012-04-21 01:24:39 +00:00
COMFIRM DEPLOY.SH - README
==========================
(C) 2012 Comfirm AB
2012-04-20 19:57:06 +00:00
Deploy your code, files, configurations etc. to multiple servers via ssh.
Perfect for the cloud. Written as a shell script (standard bourne shell) and
runs on every unix server. No need for remote install. Just run the
deploy.sh script on the local machine.
2012-04-21 01:24:39 +00:00
Authors:
Jack Engqvist Johansson, Comfirm AB
http://comfirm.se
2012-04-20 19:57:06 +00:00
USAGE
=====
2012-04-21 01:24:39 +00:00
To deploy, run:
./deploy --install
2012-04-20 19:57:06 +00:00
2012-04-21 01:24:39 +00:00
To update already existing deployment, run:
./deploy --update
2012-04-20 19:57:06 +00:00
2012-04-21 01:24:39 +00:00
Partial deployment options:
./deploy --begin Run begin script
./deploy --copy Copy files to /tmp
./deploy --replace Replace the old files
./deploy --finish Run the finish script
2012-04-20 19:57:06 +00:00
2012-04-21 01:24:39 +00:00
WHAT YOU NEED
=============
* The same username to all servers.
* An ssh keyfile without passphrase.
* The ssh key should be the same for all servers.
* [optional] Root access or sudo without password.
Note:
This script was designed for cloud computing.
2012-04-20 19:57:06 +00:00
2012-04-21 01:24:39 +00:00
INSTALLATION
2012-04-20 19:57:06 +00:00
============
2012-04-21 01:24:39 +00:00
* Copy deploy.conf to /etc/deploy.conf
* Create a .deploy file in your project. You can use the sample deploy file
shipped with this release. Just make sure to rename it.
* Put the deploy.sh in a handy place like /usr/local/sbin/deploy.sh and make it
executable. If you want you can even put it in your project location.
TIPS & TRIX
===========
* To make it even easier you can let any heartbeat software update
the deploy.conf automaticly.
* Write your .deploy file with if statements etc. to make it easy to rerun it
everytime there's new servers or if the old ones need any updates.