Doctor 是一个用于 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:setupbrew 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 sNow 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-devGem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes., during bundle install,
then run sudo apt-get install nodejsActiveRecord::NoDatabaseError: FATAL: role does not exist during rake:db setup, then run: sudo -u postgres createuser --superuser 暂无开放 Issues,或尚未同步最近议题。