deploy.sh/README

68 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2012-04-22 23:33:58 +00:00
==========================
Comfirm deploy.sh - README
2012-04-21 01:24:39 +00:00
==========================
(C) 2012 Comfirm AB
2012-04-20 19:57:06 +00:00
Deploy your code, files, configurations etc. to multiple servers via ssh.
2012-04-21 01:42:43 +00:00
Perfect for the cloud. Written as a shell script (sh, standard bourne shell) and
2012-04-20 19:57:06 +00:00
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-21 01:38:52 +00:00
License:
BSD 3-Clause
See the LICENSE file
2012-04-22 23:33:58 +00:00
Usage
2012-04-20 19:57:06 +00:00
=====
2012-04-21 01:24:39 +00:00
To deploy, run:
2012-04-21 12:42:44 +00:00
./deploy --install [ .deploy location ]
2012-04-20 19:57:06 +00:00
2012-04-21 01:24:39 +00:00
To update already existing deployment, run:
2012-04-21 12:42:44 +00:00
./deploy --update [ .deploy location ]
2012-04-20 19:57:06 +00:00
2012-04-21 01:38:52 +00:00
It will run copy, replace and update-s2...
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-21 01:38:52 +00:00
./deploy --update-s2 Run the update script, only
2012-04-21 12:42:44 +00:00
If the location where the .deploy file isn't specified, deploy.sh will assume
it's in the current directory.
2012-04-20 19:57:06 +00:00
2012-04-22 23:33:58 +00:00
What you need
2012-04-21 01:24:39 +00:00
=============
2012-04-22 23:33:58 +00:00
- 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.
- sh or bash.
2012-04-21 01:24:39 +00:00
Note:
2012-04-21 02:19:32 +00:00
This script was designed for elastic cloud computing.
2012-04-20 19:57:06 +00:00
2012-04-22 23:33:58 +00:00
Installation
2012-04-20 19:57:06 +00:00
============
2012-04-22 23:33:58 +00:00
- Copy deploy.conf to /etc/deploy.conf
- Create a .deploy file in your project. You can use the sample deploy file
2012-04-21 01:24:39 +00:00
shipped with this release. Just make sure to rename it.
2012-04-22 23:33:58 +00:00
- Put the deploy.sh in a handy place like /usr/local/sbin/deploy.sh and make it
2012-04-21 01:24:39 +00:00
executable. If you want you can even put it in your project location.
2012-04-22 23:33:58 +00:00
Tips & trix
2012-04-21 01:24:39 +00:00
===========
2012-04-22 23:33:58 +00:00
- To make it even easier you can let any heartbeat software update
2012-04-21 01:42:43 +00:00
the deploy.conf automatically.
2012-04-22 23:33:58 +00:00
- Write your .deploy file with if statements etc. to make it easy to rerun it
2012-04-21 01:24:39 +00:00
everytime there's new servers or if the old ones need any updates.
2012-04-21 01:42:43 +00:00
2012-04-21 02:19:32 +00:00
Don't be afraid to fork it and send a pull request. Any improvements are welcome.
2012-04-21 01:42:43 +00:00