WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.51k stars 333 forks source link

Updating the app once its deployed #148

Closed danshapiro closed 1 year ago

danshapiro commented 1 year ago

Once the service is deployed with https://raw.githubusercontent.com/WongSaang/chatgpt-ui/main/deployment.sh, how do you recommend updating it? If I re-run the script, it removes all settings, messages, etc.

WongSaang commented 1 year ago

Hello, thank you for your feedback.

If you want to persist data, you need to connect to an external database. I have updated the script so that if you run it again now, it will ask you if you want to connect to a database. Once you provide your database URL, you can achieve data persistence.

The format of the database URL, please refer to this section of the documentation: https://wongsaang.github.io/chatgpt-ui/guide/configuration.html#database

You just need to re-run the command every time you want to update.

danshapiro commented 1 year ago

Thank you, this is very helpful!