Merge branch 'master' of github.com:benallfree/pockethost

This commit is contained in:
Ben Allfree 2023-07-19 08:17:34 -07:00
commit 4c670adbd1
6 changed files with 73 additions and 18 deletions

View File

@ -45,7 +45,7 @@ sudo open https://pockethost.io
If all goes well:
- Update `readme.md` with latest relevant fixes.
- Update `./gitbook/releases` with latest relevant fixes.
- Create a new discussion on PocketHost forum
- If major release, create announcement on PocketBase forum
- Use `yarn version --patch` for patch release and tag with git

45
gitbook/releases/0.8.2.md Normal file
View File

@ -0,0 +1,45 @@
# PocketHost 0.8.2 Release Notes
[PocketHost](https://pockethost.io) is the zero-config 'PocketBase in the cloud' platform. Thank you for everyone's continued support for this project.
## What's New
This is a maintenance release.
Highlights:
- Fixed PocketBase version upgrade stability - `unzipper` package failing on node v18.6.0
- Improved logging for debugging purposes
- FTP enhancements
- Database migration cleanup
- Refactor Danger Zone UI
## Change log
- enhancement: proxy logging output fix
- chore: logging fixes
- fix: lock node version
- fix: unzipper nodejs incompatibility
- chore: sqlite patch update
- refactor: UpdaterService
- chore: rename pocketbaseService
- fix: service template
- enh: stresser
- enh: stresser cleanup
- fix: restore pb_static in FTP service
- chore: docs cleanup
- enh: FTP support
- enh: breadcrumb fluent logging
- docs: path adjustments
- docs: maintenance mode
- fix: maintenance mode timeout fixed
## Stats and Info
- 359 github stars
- ~2000 registered users
- ~2700 instances created
- ~1.8 million instance invocations to date (# times PocketBase executable has been launched)
- ~400 instances active and used in the past week
Check out the [FAQ](https://pockethost.gitbook.io/manual/overview/faq) and [roadmap](https://pockethost.gitbook.io/manual/overview/roadmap) for more details.

View File

@ -1,6 +1,6 @@
{
"name": "pockethost",
"version": "0.8.1",
"version": "0.8.2",
"author": "Ben Allfree <ben@benallfree.com>",
"license": "MIT",
"private": true,

View File

@ -7,7 +7,7 @@
"dev": "tsx watch src/server.ts",
"ddos": "NODE_ENV=development tsx watch src/stresser/index.ts",
"start": "tsx src/server.ts",
"pm2": "pm2 del daemon ; pm2 start \"yarn start\" --name=daemon -o ~/logs/daemon.log -e ~/logs/daemon.log",
"pm2": "pm2 stop all; pm2 del daemon ; pm2 start \"yarn start\" --name=daemon -l /home/pockethost/logs/daemon.log",
"migrate": "tsx src/migrate/migrate.ts"
},
"dependencies": {

View File

@ -52,7 +52,10 @@ export const proxyService = mkSingleton(async (config: ProxyServiceConfig) => {
res.end(`${req.headers.host || `Domain`} was rejected.`)
return
}
{
const { warn } = _proxyLogger.create(
`${req.method} ${req.headers.host}/${req.url}`
)
try {
for (let i = 0; i < middleware.length; i++) {
const m = middleware[i]!
@ -67,6 +70,7 @@ export const proxyService = mkSingleton(async (config: ProxyServiceConfig) => {
res.end(msg)
return
}
}
})
info('daemon on port 3000')

View File

@ -4,7 +4,13 @@ set -a
source .env
set +a
mv ~/logs/daemon.log ~/logs/daemon-`date +%s`.log
truncate -s 0 packages/daemon/daemon.log
LOG_ROOT=/home/pockethost/logs
DAEMON_PREFIX=daemon
DAEMON_LOG=$LOG_ROOT/$DAEMON_PREFIX.log
RESTART_DATE=`date +%s`
echo "Server restarted at $RESTART_DATE" >> $DAEMON_LOG
mv $DAEMON_LOG $LOG_ROOT/$DAEMON_PREFIX-$RESTART_DATE.log
echo "Server started at $RESTART_DATE" >> $DAEMON_LOG
chown pockethost:pockethost -R $LOG_ROOT
pkill -f 'pocketbase serve'
yarn pm2