Compare commits

..

10 Commits

Author SHA1 Message Date
luk
3940026505 u 2026-06-23 11:24:33 +08:00
Luk
61e8ad6325 ignore *nogit* and *nosf* 2024-09-22 15:51:10 +08:00
Luk
acdfd4df21 improve gitignore and seafile-ignore 2024-04-24 14:17:49 +08:00
Luk
b37cb6c224 updated .gitignore and seafile-ignore.txt using npm/sysconfig/*-ignore-find2merge.sh 2024-01-28 12:17:18 +08:00
Luk Lu
1e829430b3 standardize: read user input with [key] instead of <key>; pm2 --name=* -e * -o * 2023-10-10 19:27:27 +08:00
Luk Lu
6d0c53be33 rename deving/preping/proding to serving-* 2023-10-07 11:14:50 +08:00
Luk Lu
fbe1cdfb98 rename tuc-vic to vic 2023-09-15 16:36:46 +08:00
Luk Lu
0bdd7aacfb update seafile-ignore.txt 2023-09-12 14:18:43 +08:00
Luk Lu
ebf0b8897a update .gitignore to ignore *.gitignore.* instead of envar-*.gitignore.js 2023-03-11 08:25:51 +08:00
Luk Lu
6e64f02d16 rename serve-dev to deving or preping, serve-prod to proding 2023-03-08 21:11:44 +08:00
4 changed files with 122 additions and 72 deletions

33
.gitignore vendored
View File

@@ -1,16 +1,42 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# how to include another gitignore?
# https://stackoverflow.com/questions/7005142/can-i-include-other-gitignore-file-in-a-gitignore-file-like-include-in-c-li
# https://github.com/github/gitignore
# https://github.com/SlideWave/gitignore-include?tab=readme-ov-file#examples
# https://gitignore.io
### 目录 ################################################################# ### .gitignore.global.txt ###
# Self defined pattern to ignore
?*.gitignore
?*.gitignore/
?*.gitignore.*
?*.gitignore.*/
*.gitomit
*.gitomit.*
*.gitomit/
*.gitomit.*/
*.nogit
*.nogit.*
*.nogit/
*.nogit.*/
# 保留
!.gitignore
!.gitignore.*
!.gitkeep
# 通用 # 通用
.svn/ .svn/
.deploy_git/ .deploy_git/
.idea/ .idea/
.sass-cache/ .sass-cache/
.wrangler
/test/unit/coverage/ /test/unit/coverage/
/test/e2e/reports/ /test/e2e/reports/
node_modules/ node_modules/
*.aab
*.apk *.apk
*.ipa
*.min.js *.min.js
*.min.css *.min.css
*.min.html *.min.html
@@ -70,7 +96,6 @@ _desktop.ini
/db.json /db.json
# wo # wo
envar-*.gitignore.js
# 服务端 # 服务端
/_archive/* /_archive/*
/_datastore/* /_datastore/*
@@ -84,5 +109,5 @@ envar-*.gitignore.js
package-lock.json package-lock.json
pages4loader.json5 pages4loader.json5
# 保留 ### .gitignore.local.txt ###
!.gitkeep

View File

@@ -2,13 +2,13 @@
导航路径 [Organizations](https://git.faronear.org/explore/organizations) 导航路径 [Organizations](https://git.faronear.org/explore/organizations)
- 应用链 [tuc/_tuc](https://git.faronear.org/tuc/_tuc) - 应用链 [tuc/\_tuc](https://git.faronear.org/tuc/_tuc)
- 个性价值 [tuc-vic/vic](https://git.faronear.org/tuc-vic/vic) - 个性价值 [vic/vic](https://git.faronear.org/vic/vic)
- **<font size=5>服务端.mongo [tuc-vic/vic.server.mongo](https://git.faronear.org/tuc-vic/vic.server.mongo)</font>** - **<font size=5>服务端.mongo [vic/vic.server.mongo](https://git.faronear.org/vic/vic.server.mongo)</font>**
## 安装 ## 安装
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /tuc-vic/vic.server.mongo 参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /vic/vic.server.mongo
## 配置 ## 配置
@@ -20,7 +20,7 @@
- mongodb 配置文件已集成到 `vic.server.mongo/mongod.conf` 中 - mongodb 配置文件已集成到 `vic.server.mongo/mongod.conf` 中
- bindIp: 127.0.0.1 (生产环境) - bindIp: 127.0.0.1 (生产环境)
- bindIpAll: true (开发环境) - bindIpAll: true (开发环境)
- 编写 `/tuc-vic/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等 - 编写 `/vic/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等
- protocol: https (生产环境) - protocol: https (生产环境)
- protocol: http (开发环境) - protocol: http (开发环境)
- port: 6842 (不要用 80/443因为这要留给 certbot) - port: 6842 (不要用 80/443因为这要留给 certbot)
@@ -30,7 +30,7 @@
1. 启动 mongodb 1. 启动 mongodb
``` ```
sudo /mongodb/bin/mongod -f /tuc-vic/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log sudo /mongodb/bin/mongod -f /vic/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log
``` ```
以上命令已经被集成到 package.json 中,也可通过 npm 调用: 以上命令已经被集成到 package.json 中,也可通过 npm 调用:
@@ -41,7 +41,7 @@
2. 启动 vic.server.mongo 2. 启动 vic.server.mongo
``` ```
cd /tuc-vic/vic.server.mongo cd /vic/vic.server.mongo
node index.js node index.js
``` ```
或者 或者

View File

@@ -4,9 +4,9 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"check": "node --inspect-brk index.js", "serving-dev": "node --inspect-brk index.js",
"serve-prod-pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo", "serving-prod-pm2": "cross-env NODE_ENV=production pm2 start index.js --name=vic.server.mongo",
"serve-prod-pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name vic.server.mongo -i max", "serving-prod-pm2cluster": "cross-env NODE_ENV=production pm2 start index.js --name=vic.server.mongo -i max",
"mongodb-install": "cd /root && wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.2.0.tgz && tar xzf mongodb-linux-x86_64-debian92-4.2.0.tgz && mv mongodb-linux-x86_64-debian92-4.2.0 mongodb && mkdir mongodb/backup && mkdir mongodb/log && mkdir /data && mkdir /data/db", "mongodb-install": "cd /root && wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.2.0.tgz && tar xzf mongodb-linux-x86_64-debian92-4.2.0.tgz && mv mongodb-linux-x86_64-debian92-4.2.0 mongodb && mkdir mongodb/backup && mkdir mongodb/log && mkdir /data && mkdir /data/db",
"mongod": "/root/mongodb/bin/mongod -f /root/vic.server.mongo/mongod.conf --fork --dbpath /data/db", "mongod": "/root/mongodb/bin/mongod -f /root/vic.server.mongo/mongod.conf --fork --dbpath /data/db",
"mongod-pm2": "pm2 start -x /root/mongodb/bin/mongod -n mongod -- --port 6842 --auth --dbpath /data/db --logpath /root/mongodb/log/mongod.log", "mongod-pm2": "pm2 start -x /root/mongodb/bin/mongod -n mongod -- --port 6842 --auth --dbpath /data/db --logpath /root/mongodb/log/mongod.log",

View File

@@ -1,58 +1,83 @@
# https://help.seafile.com/syncing_client/excluding_files/ # https://help.seafile.com/syncing_client/excluding_files/
# 注释。通配符:* 匹配0到若干个字符包括代表目录的/。? 匹配1个字符包括/。 # 注释。通配符:* 匹配0到若干个字符包括代表目录的/。? 匹配1个字符包括/。
# seafile-ignore.txt 只能控制在客户端需要忽略哪些文件。你依然可以在 seahub 的 web 界面创建这些被客户端忽略的文件。 # seafile-ignore.txt 只能控制在客户端需要忽略哪些文件。你依然可以在 seahub 的 web 界面创建这些被客户端忽略的文件。
# 在这种情况下, # 在这种情况下,
# 这些文件会被同步到客户端,但是用户在客户端对这些文件的后续修改会被忽略,不会被同步回服务器。 # 这些文件会被同步到客户端,但是用户在客户端对这些文件的后续修改会被忽略,不会被同步回服务器。
# 文件在服务器端的后续更改会被同步到客户端,如果客户端也同时修改了这些文件,系统会生成冲突文件。 # 文件在服务器端的后续更改会被同步到客户端,如果客户端也同时修改了这些文件,系统会生成冲突文件。
# seafile-ignore.txt 只能忽略还没有被同步的文件。对于已经被同步的文件,如果后来把它添加到 seafile-ignore.txt 中,系统只会忽略后续更改,已经上传的版本不会受影响。 # seafile-ignore.txt 只能忽略还没有被同步的文件。对于已经被同步的文件,如果后来把它添加到 seafile-ignore.txt 中,系统只会忽略后续更改,已经上传的版本不会受影响。
# 自定义的后缀名,凡有 sfignore 后缀的都不进行同步 ### seafile-ignore.global.txt ###
*.sfignore
*.sfignore/ # 自定义的后缀名,凡有 sfignore 后缀的都不进行同步
*.sfignore
.DS_Store *.sfignore/
*/.DS_Store *.sfignore.*
*.sfignore.*/
.thumbnails *.sfomit
*/.thumbnails *.sfomit.*
*.sfomit/
Thumbs.db *.sfomit.*/
*/Thumbs.db *.nosf
thumbs.db *.nosf.*
*/thumbs.db *.nosf/
*.nosf.*/
_desktop.ini
*/_desktop.ini FETCH_HEAD
*/FETCH_HEAD
._*
*/._* .Trash/
.$* .DS_Store
*/.$* */.DS_Store
~$* .thumbnails
*/~$* */.thumbnails
node_modules/ Thumbs.db
*/node_modules/ */Thumbs.db
package-lock.json thumbs.db
*/thumbs.db
pages4loader.json5
_desktop.ini
.svn/ */_desktop.ini
*/.svn/
._*
.deploy_git/ */._*
*/.deploy_git/
.$*
unpackage/dist/ */.$*
*/unpackage/dist/
~$*
unpackage/release/ */~$*
*/unpackage/release/
node_modules/
unpackage/cache/ */node_modules/
*/unpackage/cache/ package-lock.json
*/package-lock.json
Icon
OneDrive/Icon pages4loader.json5
*/pages4loader.json5
.deploy_git/
*/.deploy_git/
# next.js 项目
.next/
*/.next/
# HBuilder 目录
unpackage/
*/unpackage/
Icon
OneDrive/Icon
# wrangler project
.dev.vars*
*/.dev.vars*
.wrangler/
*/.wrangler/
### seafile-ignore.local.txt ###