@cyberskill/shared 1.165.0 → 1.166.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node/cli/cli.util.cjs +1 -1
- package/dist/node/cli/cli.util.js +1 -1
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.js +1 -1
- package/dist/node/express/express.util.cjs +1 -1
- package/dist/node/express/express.util.js +1 -1
- package/dist/node/express/index.cjs +1 -1
- package/dist/node/express/index.js +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.js +1 -1
- package/package.json +1 -1
- package/public/wiki/clone-project.md +99 -0
- package/public/wiki/setup-mongo.md +29 -0
- package/public/wiki/setup-nginx.md +55 -0
- package/public/wiki/setup-node.md +29 -0
- package/public/wiki/setup-pm2.md +27 -0
- package/public/wiki/setup-redis.md +17 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
## ✅ Bước 1: Cài đặt node (nếu chưa cài)
|
|
2
|
+
|
|
3
|
+
[Xem tại đây](./setup-node.md)
|
|
4
|
+
|
|
5
|
+
## ✅ Bước 2: Cài đặt pm2
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install pm2 -g
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## ✅ Bước 3: Chạy pm2
|
|
12
|
+
|
|
13
|
+
Chạy bằng node mặc định
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
pm2 start tên-file.js --name tên-app
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
> ⚠️ Lưu ý: ví dụ `pm2 start index.js --name cyberskill-example`
|
|
20
|
+
|
|
21
|
+
Đối với dự án có script chạy từ package.json
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
pm2 start pnpm --name tên-app -- run tên-script-chạy
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
> ⚠️ Lưu ý: ví dụ `pm2 start pnpm --name cyberskill-example -- run start`
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
## ✅ Bước 1: Cài đặt homebrew (nếu chưa cài)
|
|
2
|
+
|
|
3
|
+
```
|
|
4
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
## ✅ Bước 2: Cài đặt redis
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
brew install redis
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## ✅ Bước 3: Chạy redis
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
brew services start redis
|
|
17
|
+
```
|