Code Monkey home page Code Monkey logo

awa1914 / deploy.sh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amail/deploy.sh

0.0 0.0 0.0 121 KB

Deploy.sh is a universal deployment script that makes it easy for you to 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.

License: BSD 3-Clause "New" or "Revised" License

Shell 100.00%

deploy.sh's Introduction

==========================
Comfirm deploy.sh - README
==========================
(C) 2012 Comfirm AB

Deploy your code, files, configurations etc. to multiple servers via ssh.
Perfect for the cloud. Written as a shell script (sh, standard bourne shell) and
runs on every unix server. No need for remote install. Just run the
deploy.sh script on the local machine. 

Authors:
Jack Engqvist Johansson, Comfirm AB
http://comfirm.se

License:
BSD 3-Clause
See the LICENSE file

Usage
=====
 To deploy, run:
 ./deploy --install [ .deploy location ]
 
 To update already existing deployment, run:
 ./deploy --update [ .deploy location ]
 
 It will run copy, replace and update-s2...
 
 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
 ./deploy --update-s2    Run the update script, only
 
 If the location where the .deploy file isn't specified, deploy.sh will assume
 it's in the current directory.

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.
 - sh or bash.
 
 Note:
 	This script was designed for elastic cloud computing.

Installation
============
 - 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 automatically.
 - 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.
   
   
Don't be afraid to fork it and send a pull request. Any improvements are welcome.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.