mirror of
https://github.com/guyg1474/hcrb.git
synced 2026-10-15 23:13:28 +02:00
DEPLOY.md: Repository-Adresse eintragen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1d5d4d5c67
commit
205dfacba4
1 file changed
+3
-16
@@ -7,22 +7,9 @@ Der Ablauf: Code liegt in einem Git-Repository → Server holt ihn per `git pull
|
||||
den Container → der Container hängt im selben Docker-Netz wie NPM → NPM leitet die Domain per HTTPS an `hcrb:3000`.
|
||||
Die Daten (`data/`) liegen außerhalb des Containers auf dem Server und bleiben bei Updates erhalten.
|
||||
|
||||
## 1. Lokal: Git-Repository anlegen (einmalig)
|
||||
|
||||
```bash
|
||||
cd ~/Dokumente/Projekte/airsoft_plan_tool
|
||||
git init -b main
|
||||
git add .
|
||||
git commit -m "Erste Version"
|
||||
```
|
||||
|
||||
Dann ein **privates** Repository bei GitHub/GitLab/Codeberg anlegen und hochladen:
|
||||
|
||||
```bash
|
||||
git remote add origin git@github.com:DEIN-NAME/hcrb.git
|
||||
git push -u origin main
|
||||
```
|
||||
## 1. Git-Repository ✓
|
||||
|
||||
Erledigt – der Code liegt in https://github.com/guyg1474/hcrb (privat).
|
||||
`data/`, `.env` und `node_modules/` stehen in `.gitignore` – Passwörter und Mitgliederdaten landen nicht im Repository.
|
||||
|
||||
## 2. Domain
|
||||
@@ -43,7 +30,7 @@ Den ausgegebenen Schlüssel im Repository unter *Settings → Deploy keys* eintr
|
||||
|
||||
```bash
|
||||
sudo mkdir -p /opt/hcrb && sudo chown $USER: /opt/hcrb
|
||||
GIT_SSH_COMMAND="ssh -i ~/.ssh/hcrb_deploy" git clone git@github.com:DEIN-NAME/hcrb.git /opt/hcrb
|
||||
GIT_SSH_COMMAND="ssh -i ~/.ssh/hcrb_deploy" git clone git@github.com:guyg1474/hcrb.git /opt/hcrb
|
||||
cd /opt/hcrb
|
||||
git config core.sshCommand "ssh -i ~/.ssh/hcrb_deploy"
|
||||
chmod +x deploy/*.sh
|
||||
|
||||
Reference in new issue
Block a user