tiagorlampert / CHAOS

:fire: CHAOS is a free and open-source Remote Administration Tool that allow generate binaries to control remote operating systems.
MIT License
2.35k stars 522 forks source link

[question] Heroku data #94

Closed Ran-Xing closed 2 years ago

Ran-Xing commented 2 years ago

How does heroku persist data?

Ran-Xing commented 2 years ago

Heroku Postgres? Maybe read parameters from environment variables, if not empty, connect to postgress

Ran-Xing commented 2 years ago

and I found that the client side keeps disconnecting

Ran-Xing commented 2 years ago

https://github.com/yudai/gotty LGTM

tiagorlampert commented 2 years ago

Hello @Ran-Xing,

CHAOS at the moment persist the data on a local sqlite database. So the local instance on heroku keep the data. I understand that it is a problem if the instance dies and the database is lost.

I will consider it an improvement to optionally connect to a postgres database if some environment variable is provided. That way the data will be saved.

Thanks for your feedback, as soon as I implement it I'll let you know.

Ran-Xing commented 2 years ago

@tiagorlampert Do you have exclusive chat software, such as slack, telegram, I want to get involved in your project, but it may take me a while to understand your code

Ran-Xing commented 2 years ago

@tiagorlampert

tiagorlampert commented 2 years ago

Hi @Ran-Xing,

The latest version support postgres database. You only need to specify some environment variables.

On the readme has the required environment variables to use: https://github.com/tiagorlampert/CHAOS#quick-start

tiagorlampert commented 2 years ago

@tiagorlampert Do you have exclusive chat software, such as slack, telegram, I want to get involved in your project, but it may take me a while to understand your code

Yes, I have. Could you contact me on my public email: tiagorlampert@gmail.com