From cd28b2fdb7944c0960159e9bbd9d24bbd3e7477e Mon Sep 17 00:00:00 2001 From: Michiel de Jong <michiel@unhosted.org> Date: Mon, 20 Oct 2014 11:08:40 +0100 Subject: [PATCH] testing new deploy command --- deploy/deploy.sh | 6 +++--- doc/deploying-a-server.md | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 8119c88..9fa0a71 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -11,12 +11,12 @@ else FOLDER="./data/" fi if [ $# -ge 3 ]; then - BRANCH=$2 + BRANCH=$3 else BRANCH="master" fi if [ $# -ge 4 ]; then - USER=$3 + USER=$4 else USER="core" fi @@ -30,7 +30,7 @@ echo "Infrastructure branch is $BRANCH" echo "Remote user is $USER" echo "Default site is $DEFAULTSITE" -scp $FOLDER $USER@$SERVER:/data +scp -r $FOLDER $USER@$SERVER:/data scp ./deploy/onServer.sh $USER@$SERVER: ssh $USER@$SERVER sudo mkdir -p /var/lib/coreos-install/ scp cloud-config $USER@$SERVER:/var/lib/coreos-install/user_data diff --git a/doc/deploying-a-server.md b/doc/deploying-a-server.md index 124365b..11780e4 100644 --- a/doc/deploying-a-server.md +++ b/doc/deploying-a-server.md @@ -11,10 +11,11 @@ Make sure you read [getting started](getting-started-as-a-hoster.md) first. * Give the new server a name (in this example, we call the server 'k3') * Add k3 to your /etc/hosts with the right IP address * If you have used this name before, run `./deploy/forget-server-fingerprint.sh k3` -* From the root folder of this repository, run `sh ./deploy/deploy.sh k3 ./data/` (where `./data/` should contain `server-wide/postfix/` +* From the root folder of this repository, run `sh ./deploy/deploy.sh k3 ./data/ master root` (where `./data/` should contain + `server-wide/postfix/` and `server-wide/haproxy/approved-certs/`; see the existing folder `data/` in this repo for an example of what the email forwards and TLS certificate files should look like). -* This will ask for the ssh password once; the rest should be automatic! +* The rest should be automatic! ### Adding a website to your server * For each site you want to deploy on the server, e.g. example.com, do the following: -- GitLab