A website to compare changes, translate and submit PR.
docker compose -f docker-compose.dev.yml up --build
Open: https://127.0.0.1:3001/
sudo docker stop dochub-server
sudo docker remove dochub-server
sudo docker pull zjffun/dochub-server
sudo docker run -e DOTENV_KEY="dotenv:https://:[email protected]/vault/.env.vault?environment=production" -d --restart=always --name dochub-server -p 30001:30001 zjffun/dochub-server:latest
sudo docker logs dochub-server
NGINX config:
sudo cat <<'EOF' > /etc/nginx/sites-enabled/dochub-server-zjffun-com
server {
server_name dochub-server.zjffun.com;
listen 80;
location / {
proxy_pass https://localhost:30001;
}
}
EOF
Restful with out @Param
(only use @Query
).
git clone https://github.com/zjffun/dochub-server.git
yarn install
1 /opt/homebrew/etc/mongod.conf
add replication
:
systemLog:
destination: file
path: /opt/homebrew/var/log/mongodb/mongo.log
logAppend: true
storage:
dbPath: /opt/homebrew/var/mongodb
net:
bindIp: 127.0.0.1, ::1
ipv6: true
replication:
replSetName: replocal
2 Restart MongoDB:
brew services restart mongodb-community
3 Initiate:
mongosh
db.grantRolesToUser('admin', [
{
role: 'clusterAdmin',
db: 'admin',
},
]);
rs.initiate();
1 Installation:
npm install pm2@latest -g
2 Start:
pm2 start dist/main.js --name dochub-server
3 Auto restart after system reboot:
pm2 startup systemd
pm2 save