mirror of
https://github.com/Llewellynvdm/deploy.sh.git
synced 2024-09-28 04:59:03 +00:00
cleaned up a bit and edited README
This commit is contained in:
parent
4947d7b9b1
commit
0c89749bdf
25
LICENSE
Normal file
25
LICENSE
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
Copyright (c) 2012, Comfirm AB
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
* Neither the name of the Comfirm AB nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR NY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
7
README
7
README
@ -11,6 +11,10 @@ Authors:
|
|||||||
Jack Engqvist Johansson, Comfirm AB
|
Jack Engqvist Johansson, Comfirm AB
|
||||||
http://comfirm.se
|
http://comfirm.se
|
||||||
|
|
||||||
|
License:
|
||||||
|
BSD 3-Clause
|
||||||
|
See the LICENSE file
|
||||||
|
|
||||||
USAGE
|
USAGE
|
||||||
=====
|
=====
|
||||||
To deploy, run:
|
To deploy, run:
|
||||||
@ -19,11 +23,14 @@ USAGE
|
|||||||
To update already existing deployment, run:
|
To update already existing deployment, run:
|
||||||
./deploy --update
|
./deploy --update
|
||||||
|
|
||||||
|
It will run copy, replace and update-s2...
|
||||||
|
|
||||||
Partial deployment options:
|
Partial deployment options:
|
||||||
./deploy --begin Run begin script
|
./deploy --begin Run begin script
|
||||||
./deploy --copy Copy files to /tmp
|
./deploy --copy Copy files to /tmp
|
||||||
./deploy --replace Replace the old files
|
./deploy --replace Replace the old files
|
||||||
./deploy --finish Run the finish script
|
./deploy --finish Run the finish script
|
||||||
|
./deploy --update-s2 Run the update script, only
|
||||||
|
|
||||||
WHAT YOU NEED
|
WHAT YOU NEED
|
||||||
=============
|
=============
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
# (C) 2012 Comfirm AB
|
|
||||||
# deploy.sh
|
|
||||||
# The server list.
|
# The server list.
|
||||||
|
# deploy.sh
|
||||||
|
# Copyright (c) 2012, Comfirm AB
|
||||||
|
#
|
||||||
# To get the most out of deploy.sh you can make it dynamic.
|
# To get the most out of deploy.sh you can make it dynamic.
|
||||||
# Use a heartbeat software or similar to maintain it.
|
# Use a heartbeat software or similar to maintain it.
|
||||||
|
|
||||||
# Define the user to login with:
|
# Define the user to login with:
|
||||||
# user name keyfile
|
# user name keyfile
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
user ubuntu /hvar/keyfiles/ubuntu.rsa
|
user ubuntu /var/keyfiles/ubuntu.rsa
|
||||||
|
|
||||||
# Add server groups like this:
|
# Add server groups like this:
|
||||||
# server group ip address
|
# server group ip address
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# (C) 2012 Comfirm AB
|
|
||||||
# deploy.sh
|
# deploy.sh
|
||||||
# The deployment file
|
# The deployment file
|
||||||
#
|
# Copyright (c) 2012, Comfirm AB
|
||||||
|
|
||||||
# Add files to be copied.
|
# Add files to be copied.
|
||||||
# file group file
|
# file group file
|
||||||
# ------------------------------------------
|
# ------------------------------------------
|
||||||
|
27
deploy.sh
27
deploy.sh
@ -1,9 +1,34 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# (C) 2012 Comfirm AB
|
|
||||||
# deploy.sh
|
# deploy.sh
|
||||||
# Easy deployment to multiple servers.
|
# Easy deployment to multiple servers.
|
||||||
# Deploy code, files, settings and much more to multiple servers via ssh.
|
# Deploy code, files, settings and much more to multiple servers via ssh.
|
||||||
#
|
#
|
||||||
|
# Copyright (c) 2012, Comfirm AB
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# * Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer.
|
||||||
|
# * Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer in the documentation
|
||||||
|
# and/or other materials provided with the distribution.
|
||||||
|
# * Neither the name of the Comfirm AB nor the names of its contributors
|
||||||
|
# may be used to endorse or promote products derived from this software
|
||||||
|
# without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
# FOR NY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
# Authors:
|
# Authors:
|
||||||
# ---------------------------------------------
|
# ---------------------------------------------
|
||||||
# Jack Engqvist Johansson, Comfirm AB
|
# Jack Engqvist Johansson, Comfirm AB
|
||||||
|
Loading…
Reference in New Issue
Block a user