File tree 3 files changed +44
-2
lines changed
3 files changed +44
-2
lines changed Original file line number Diff line number Diff line change
1
+ # setting for Siyuan-Note
2
+ SIYUAN_API_URL =
3
+ SIYUAN_AUTH_TOKEN =
4
+
5
+ # setting for WordPress
6
+ WORDPRESS_API_URL = https://wordpress-host/xmlrpc.php
7
+ WORDPRESS_USERNAME =
8
+ WORDPRESS_PASSWORD =
9
+
10
+ # set wordpress as default
11
+ DEFAULT_TYPE = wordpress
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ See also:[https://github.com/element-plus/element-plus-nuxt-starter/issues/46](h
8
8
## Install
9
9
``` bash
10
10
dnf install npm
11
+ # apt install nom
12
+ npm i -g n
13
+ sudo n stable
14
+
11
15
npm i -g yarn
12
16
npm i -g vercel
13
17
npm i -g pm2
@@ -17,7 +21,31 @@ npm i -g pm2
17
21
yarn
18
22
```
19
23
20
- ## dev
24
+ ## Set up environment variables
25
+
26
+ Copy the .env.example file in this directory to .env (which will be ignored by Git):
27
+
28
+ ``` bash
29
+ cp .env.example .env
30
+ ```
31
+
32
+ and change the config, the file maybe like this:
33
+
34
+ ``` properties
35
+ # setting for Siyuan-Note
36
+ SIYUAN_API_URL =
37
+ SIYUAN_AUTH_TOKEN =
38
+
39
+ # setting for WordPress
40
+ WORDPRESS_API_URL =https://wordpress-host/xmlrpc.php
41
+ WORDPRESS_USERNAME =
42
+ WORDPRESS_PASSWORD =
43
+
44
+ # set wordpress as default
45
+ DEFAULT_TYPE =wordpress
46
+ ```
47
+
48
+ ## Dev
21
49
22
50
``` bash
23
51
yarn dev
29
57
yarn vdev
30
58
```
31
59
32
- ## deploy
60
+ ## Deploy
61
+
33
62
``` bash
34
63
pm2 start pm2.json
35
64
```
Original file line number Diff line number Diff line change 11
11
<!-- 备案信息 -->
12
12
<div class =" page copyright" >
13
13
© ; 2011-{{ getNowYear() }} <a href =" https://terwer.space" target =" _blank" >Terwer</a > All Rights Reseaved.
14
+ <a href =" https://github.com/terwer/jvue-front" target =" _blank" >Github</a >.
15
+ <a >暗黑模式</a >
14
16
</div >
15
17
</footer >
16
18
</template >
You can’t perform that action at this time.
0 commit comments