Doctor is a documentation server for your docs in github
You may use the Suggest Edits
feature in Doctor to submit changes to any of the MD files in github. Doctor relies on github workflow to accept PRs for changes.
Pre-requisite: Install and set up docker on your machine.
# get the docker-compose.yml file from the minio/doctor repo
wget https://raw.githubusercontent.com/minio/doctor/master/docker-compose.yml
wget https://raw.githubusercontent.com/minio/doctor/master/.env
# If you want to start the services in production
RAILS_ENV=production docker-compose up -d
# If you want to start the services in development
docker-compose up -d
# get the container name of the web service
docker ps
# setup the database in a one-off command
docker exec docapp bundle exec rake db:setup
brew install postgres
. Configure Launch Agent to start it automatically or use the command pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
to start it manually.Clone and start doctor
> git clone https://github.com/minio/doctor.git
> cd doctor
> bundle install
> rake db:drop
> rake db:setup
> rails s
Now visit http://localhost:3000
Use [email protected]
with password Doctor!23
to login. Visit http://localhost:3000 to navigate the docs. This can be changed anytime via the Dashboard. We highly recommend that you do if you use Doctor in deployment.
Note -
bundle install
sometimes may not go through smoothly. In that case, you may need to run sudo apt install libpg-dev
Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
, during bundle install
,sudo apt-get install nodejs
ActiveRecord::NoDatabaseError: FATAL: role <your_user_name> does not exist
during rake:db setup
, then run: sudo -u postgres createuser --superuser <your_user_name>