Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where does Cattaz store persistent data? [Docker] #19

Open
kawaii opened this issue Mar 29, 2018 · 5 comments
Open

Where does Cattaz store persistent data? [Docker] #19

kawaii opened this issue Mar 29, 2018 · 5 comments

Comments

@kawaii
Copy link

kawaii commented Mar 29, 2018

Hello, in the Docker container, where does Cattaz store any created documents? Is there a single file path I can just create a volume bind mount to in order to persist the data between container recreation?

@kawaii
Copy link
Author

kawaii commented Mar 29, 2018

Also, is there an environment variable to allow me to change the websocket port used by the app? In the docker-compose.yml file I can easily change the websocket listener like so:

ports:
  - "17011:1234"
  - "80:8080"

However the Cattaz web application seems hardcoded to check port 1234 for the websocket. :)

@ohtake
Copy link
Member

ohtake commented Mar 30, 2018

Hi kawaii,

where does Cattaz store any created documents?

If you use master branch, Cattaz does not persist documents for now.
If you use leveldb branch (#6), Cattaz stores documents at ./y-leveldb-databases/.

is there an environment variable to allow me to change the websocket port used by the app?

Currently not.
It is a good idea to make ports configurable.
Would you like to make a PR or shall I do it for you?

@kawaii
Copy link
Author

kawaii commented Apr 4, 2018

Currently not.
It is a good idea to make ports configurable.
Would you like to make a PR or shall I do it for you?

Hmm, I assume that it is simply a matter of changing src/Main.jsx#10 and src/AppEnabledWikiEditorCodeMirror.jsx#L81 to use an environment variable such as process.env.PORT, but I'm not a JavaScript expert, so maybe it is best if you do it. 🙂

@ohtake
Copy link
Member

ohtake commented Apr 6, 2018

Port numbers are now configurable.
You can find documentation at http://cattaz.io/build/#/doc/usage.
Could you try it?

@kawaii
Copy link
Author

kawaii commented Apr 12, 2018

@ohtake thank you! I have tested it and the fuctionality works as intended. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants