How to Update
If deployed on Vercel
When your forked repository is out of date, you can sync it with the original repository according to the picture below:
After that, Vercel will redeploy automatically.
If you also host the documentation site
The documentation site is built from the docs/ directory and deployed separately through GitHub Pages. After you push changes under docs/** to the default branch, the docs deployment workflow will publish the updated site automatically.
If deployed with Docker
- Assuming the directory on your server is
~/subconv. Enter the directory. - Stop the service with
docker compose down. - Pull the latest image with
docker compose pull. - Check the Release page to see if there are any runtime or template settings that need to be updated. If not, skip steps 5-6.
- Backup
config.yamland thetemplate/directory, then compare them withconfig.yaml.exampleand the latesttemplate/directory from this repository. - Merge any changes you need into your local
config.yaml,template/zju.yaml, ortemplate/general.yamlfiles. - Start the service with
docker compose up -d.
If deployed on your VPS (binary file)
- Stop the subconv process.
- Download the latest binary file from Releases. Delete the original
apifile and the oldmainpage/distdirectory, then extract the new files into place. Grant theapifile executable permission. - Check the Release page to see if there are any runtime or template settings that need to be updated. If not, skip steps 4-6.
- Backup
config.yamland thetemplate/directory, then compare them withconfig.yaml.exampleand the latesttemplate/directory from this repository. - Keep the refreshed
config.yamlandtemplate/directory next toapi. - Merge any local changes into
config.yaml,template/zju.yaml, ortemplate/general.yamlas needed. - Run the program again.