File tree 1 file changed +8
-23
lines changed
1 file changed +8
-23
lines changed Original file line number Diff line number Diff line change @@ -7,43 +7,28 @@ ES 開發的 Nuxt3 x WordPress 版本,專門使用在客製化專案客戶。
7
7
免費商用,請隨意下載。
8
8
9
9
## 環境
10
-
11
- - Node -- v18.14.0
10
+ - Node -- v16.16.0
12
11
- yarn -- 1.22.19
13
12
14
13
## 安裝步驟
15
-
16
- 1 . 到 /.env 以及 nuxt-app/.env 檔設定基本環境
17
- 2 . docker-compose up -d
18
- 3 . cd nuxt-app
19
- 4 . yarn && yarn dev
20
- 5 . 專案啟動在
14
+ 1 . 安裝 Docker desktop
15
+ 2 . 到 /.env 以及 nuxt-app/.env 檔設定基本環境
16
+ 3 . docker-compose up -d
17
+ 4 . cd nuxt-app
18
+ 5 . yarn && yarn dev
19
+ 6 . 專案啟動在
21
20
nuxt localhost:3000,
22
21
wordpress localhost:9000/wp-admin
23
22
24
23
## 資料庫輸出
25
-
26
24
1 . ` sh dump.sh ` 將 docker VM 的 DB 資料匯出至 ` /db/default/wp.sql `
27
25
28
- ## 前端上傳步驟
29
-
30
- 1 . stash 未 commit 的檔案後切換至 ` deploy ` 分支
31
- 2 . rebase ` deploy ` 至 ` master `
32
- 3 . 確認於 ` deploy ` 分支下 ` yarn build `
33
- 4 . commit ` /.output ` 所有檔案
34
- 5 . 連線主機
35
- 6 . 於專案資料夾下` /project-name ` 輸入 ` git reset --hard origin/deploy ` 、 ` git pull origin deploy `
36
- 7 . 開啟 ` pm2 ` 可以先 ` pm2 delete project-name ` ,或者直接 ` pm2 restart project-name `
37
- 8 . 沒有開過 ` pm2 ` 則 ` cd /project-name/nuxt-app ` 輸入 ` pm2 start --env prod `
38
-
39
- ## 其他套件文件
40
-
26
+ ## 相關文件
41
27
- [ Nuxt3] ( https://nuxt.com/ )
42
28
- [ Nuxt Icons] ( https://github.com/gitFoxCode/nuxt-icons )
43
29
- [ Formkit] ( https://formkit.com/getting-started/what-is-formkit )
44
30
45
31
## Git Commit Type 規範
46
-
47
32
1 . feat: 新增/修改功能 (feature)。
48
33
2 . fix: 修補 bug (bug fix)。
49
34
3 . docs: 文件,增加說明 (documentation)。
You can’t perform that action at this time.
0 commit comments