Skip to content

Instantly share code, notes, and snippets.

@yasushisakai
Last active November 6, 2020 18:41
Show Gist options
  • Save yasushisakai/0e80cdd1b518c1b72fd6be2a18c70293 to your computer and use it in GitHub Desktop.
Save yasushisakai/0e80cdd1b518c1b72fd6be2a18c70293 to your computer and use it in GitHub Desktop.
memo on cityio

tmux session

the shared tmux session is /tmp/shared. The following command will attach the session.

tmux -S /tmp/shared attach

please use this shared session, so the rest of us can see it.

you can detach the session by <Ctrl+b d>

tmux cheatsheet

shared directory

you will find everything to run cityio and the backup script at /usr/local/share/cityio

running the cityio server program and dumper

The server and the backup script is symlinked from /home/yasushis/code to  /usr/local/shared/cityio after you attach the tmux session, you can run these two programs by

cd /usr/local/share/cityio
./server
# (Ctrl+b o) to switch the tmux pane
# or
# (Ctrl+b %) to split the current tmux pane
./cityio_dumper

other files

The shared directory has two files that can configure the behavior of the two programs.

  1. .env: which is hidden, holds the master key and database url
  2. config.toml: can change the interval of the backup script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment