Skip to content

NephroFlow development environment

Notifications You must be signed in to change notification settings

nephroflow/nfde

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NephroFlow Development Environment Manager

Switch NephroFlow development environments easily.

Dump and restore databases

Include export PGPASSWORD=... in your .zshrc or .bashrc. This way, you don't have to enter the postgres password for every postgres action.

Dump

  1. Start the postgres service (with exposed ports): docker-compose run --service-ports postgres
  2. nfde database dump $name

Restore

  1. Start the postgres service (with exposed ports): docker-compose run --service-ports postgres
  2. Make sure nothing is using the database (the tool will only try to kill the rails process of the web service)
  3. nfde database restore will open a fuzzy picker of your saved database

Save and load docker images

Save

nfde docker save $name

Load

nfde docker load

Prerequisites

  • docker
  • brew install postgresql
    • drop_db
    • create_db
    • pg_dump
    • pg_restore
  • (connection to the postgres database from localhost)

Config

nfde config

Docker image, container and database names

  • api_container_name (default: "nephroflow-web-1")
  • api_image_name (default: "nephroflow/server")
  • nephroflow_database_name (default: "nephroflow_development")

Backup paths

  • backup_image_path
  • backup_database_path

Binaries

nfde

nfde -h

run_api

run_api -h

Installation

Install cargo and run

cargo install --git https://www.github.com/nephroflow/nfde.git

About

NephroFlow development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages