Skip to content

Commit

Permalink
Merge pull request #23 from terwer/dev
Browse files Browse the repository at this point in the history
feat:#1 添加配置说明
  • Loading branch information
terwer authored Oct 9, 2022
2 parents 342645c + 0f6b6d1 commit e1f310e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# setting for Siyuan-Note
SIYUAN_API_URL=
SIYUAN_AUTH_TOKEN=

# setting for WordPress
WORDPRESS_API_URL=https://wordpress-host/xmlrpc.php
WORDPRESS_USERNAME=
WORDPRESS_PASSWORD=

# set wordpress as default
DEFAULT_TYPE=wordpress
33 changes: 31 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ See also:[https://github.com/element-plus/element-plus-nuxt-starter/issues/46](h
## Install
```bash
dnf install npm
# apt install nom
npm i -g n
sudo n stable

npm i -g yarn
npm i -g vercel
npm i -g pm2
Expand All @@ -17,7 +21,31 @@ npm i -g pm2
yarn
```

## dev
## Set up environment variables

Copy the .env.example file in this directory to .env (which will be ignored by Git):

```bash
cp .env.example .env
```

and change the config, the file maybe like this:

```properties
# setting for Siyuan-Note
SIYUAN_API_URL=
SIYUAN_AUTH_TOKEN=

# setting for WordPress
WORDPRESS_API_URL=https://wordpress-host/xmlrpc.php
WORDPRESS_USERNAME=
WORDPRESS_PASSWORD=

# set wordpress as default
DEFAULT_TYPE=wordpress
```

## Dev

```bash
yarn dev
Expand All @@ -29,7 +57,8 @@ or
yarn vdev
```

## deploy
## Deploy

```bash
pm2 start pm2.json
```
Expand Down
2 changes: 2 additions & 0 deletions components/default/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<!-- 备案信息 -->
<div class="page copyright">
&copy; 2011-{{ getNowYear() }} <a href="https://terwer.space" target="_blank">Terwer</a> All Rights Reseaved.
<a href="https://github.com/terwer/jvue-front" target="_blank">Github</a>.
<a>暗黑模式</a>
</div>
</footer>
</template>
Expand Down

1 comment on commit e1f310e

@vercel
Copy link

@vercel vercel bot commented on e1f310e Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.