Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ecobytes
compose.libre.sh
Commits
cd28b2fd
Commit
cd28b2fd
authored
10 years ago
by
Michiel de Jong
Browse files
Options
Downloads
Patches
Plain Diff
testing new deploy command
parent
49612551
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy/deploy.sh
+3
-3
3 additions, 3 deletions
deploy/deploy.sh
doc/deploying-a-server.md
+3
-2
3 additions, 2 deletions
doc/deploying-a-server.md
with
6 additions
and
5 deletions
deploy/deploy.sh
+
3
−
3
View file @
cd28b2fd
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
doc/deploying-a-server.md
+
3
−
2
View file @
cd28b2fd
...
...
@@ -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).
*
Th
is will ask for the ssh password once; th
e 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:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment