Skip to content

Commit 5c526e8

Browse files
committed
fix deployment section
1 parent e0c847e commit 5c526e8

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,18 @@ REMOTE_PORT
115115
REMOTE_USERNAME
116116
```
117117

118+
For local deployments you will need to set SSH alias for the remote server, in your local SSH config file, for example:
119+
120+
```bash
121+
# /home/username/.ssh/config
122+
123+
# arm1 ssh alias for remote server
124+
Host arm1 123.123.13.123
125+
HostName 123.123.13.123
126+
IdentityFile ~/.ssh/my-servers/arm1-ssh-private-key.key
127+
User your-user
128+
```
129+
118130
### 1. Nginx
119131

120132
All Nginx deployments come down to building the website and copying the compiled files from the `/dist` folder into the Nginx web root folder on a remote server.
@@ -134,6 +146,9 @@ yarn build:nginx
134146

135147
# copy compiled app from local /dist folder to Nginx web root on the remote server
136148
"deploy:nginx": "bash scripts/deploy-nginx.sh '~/traefik-proxy/apps/nmc-nginx-with-volume/website' arm1",
149+
150+
# run deploy
151+
yarn deploy:nginx
137152
```
138153

139154
#### Github Actions
@@ -148,18 +163,6 @@ bash__deploy-nginx.yml
148163
default__deploy-nginx.yml
149164
```
150165

151-
SSH alias for the remote server, example config file:
152-
153-
```bash
154-
# /home/username/.ssh/config
155-
156-
# arm1 ssh alias for remote server
157-
Host arm1 123.123.13.123
158-
HostName 123.123.13.123
159-
IdentityFile ~/.ssh/my-servers/arm1-ssh-private-key.key
160-
User your-user
161-
```
162-
163166
### 2. Github Pages
164167

165168
Only available in Github Actions. Just trigger one of the following workflows:

docs/working-notes/todo3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ home -> about pages image transition maybe, markdown content
450450
mermaid plugin
451451
loading skeletons
452452
tree diagram for layouts hierarchy
453+
analytics
453454
----
454455
// 4.10
455456
in BaseHead.astro

0 commit comments

Comments
 (0)