Skip to content
Snippets Groups Projects
Commit cd28b2fd authored by Michiel de Jong's avatar Michiel de Jong
Browse files

testing new deploy command

parent 49612551
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment