Switch NephroFlow development environments easily.
Include export PGPASSWORD=...
in your .zshrc
or .bashrc
. This way,
you don't have to enter the postgres password for every postgres action.
- Start the postgres service (with exposed ports):
docker-compose run --service-ports postgres
nfde database dump $name
- Start the postgres service (with exposed ports):
docker-compose run --service-ports postgres
- Make sure nothing is using the database (the tool will only try to kill
the
rails
process of theweb
service) nfde database restore
will open a fuzzy picker of your saved database
nfde docker save $name
nfde docker load
- docker
brew install postgresql
- drop_db
- create_db
- pg_dump
- pg_restore
- (connection to the postgres database from localhost)
nfde config
- api_container_name (default: "nephroflow-web-1")
- api_image_name (default: "nephroflow/server")
- nephroflow_database_name (default: "nephroflow_development")
- backup_image_path
- backup_database_path
nfde -h
run_api -h
Install cargo and run
cargo install --git https://www.github.com/nephroflow/nfde.git