Skip to content

Commit

Permalink
rename serve-many to serve:subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyuheng committed Oct 2, 2023
1 parent 4809dd0 commit c2f3a1a
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 97 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ I also created certificate files for my domain using `certbot`.
- About how to use `certbot`, please see
the ["Get free certificate"](#get-free-certificate) section.

I can use `x-server serve-many` command to serve all of
I can use `x-server serve:subdomain` command to serve all of
the websites in `/websites` directory.

```sh
x-server serve-many /websites \
x-server serve:subdomain /websites \
--hostname fidb.app \
--port 443 \
--tls-cert /etc/letsencrypt/live/fidb.app/fullchain.pem \
Expand Down Expand Up @@ -148,7 +148,7 @@ Instead of issuing long command,
we can also use a root `website.json` config file.

```sh
x-server serve-many /websites/website.json
x-server serve:subdomain /websites/website.json
```

Where `/websites/website.json` is:
Expand All @@ -166,7 +166,7 @@ Where `/websites/website.json` is:
}
```

- When using `x-server serve-many`,
- When using `x-server serve:subdomain`,
the `server.hostname` option is required.

- And each website in `/websites` might have
Expand Down Expand Up @@ -296,7 +296,7 @@ Description=fidb.app x-server
After=network.target

[Service]
ExecStart=/usr/local/bin/x-server serve-many /websites/website.json
ExecStart=/usr/local/bin/x-server serve:subdomain /websites/website.json
Restart=on-failure

[Install]
Expand Down
1 change: 1 addition & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rename serve to serve:webwite
147 changes: 75 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"format": "prettier src --write"
},
"dependencies": {
"@xieyuheng/command-line": "^0.0.11",
"@xieyuheng/command-line": "^0.0.12",
"@xieyuheng/ty": "^0.1.23",
"bcrypt": "^5.1.1",
"detect-port": "^1.5.1",
Expand All @@ -31,14 +31,14 @@
"devDependencies": {
"@types/bcrypt": "^5.0.0",
"@types/detect-port": "^1.3.3",
"@types/micromatch": "^4.0.2",
"@types/node": "^20.6.5",
"@types/micromatch": "^4.0.3",
"@types/node": "^20.8.0",
"@types/qs": "^6.9.8",
"prettier": "^3.0.3",
"prettier-plugin-organize-imports": "^3.2.3",
"typescript": "^5.2.2",
"vite": "^4.4.9",
"vitest": "^0.34.5"
"vitest": "^0.34.6"
},
"license": "GPL-3.0-or-later"
}
Loading

0 comments on commit c2f3a1a

Please sign in to comment.