GitHub star ranking for users, organizations and repositories.
Server | Worker |
---|---|
Docker container images are built on Docker Hub with Automated Build.
- Server: https://hub.docker.com/r/k0kubun/gitstar-ranking-server/builds
- Worker: https://hub.docker.com/r/k0kubun/gitstar-ranking-worker/builds
Install following dependencies.
- Ruby 2.4.1
- Java 1.8.0
- MySQL 5.7
- Node.js 6.0.0+
- Yarn
Then, execute following command.
bin/setup
curl -sL deb.nodesource.com/setup_6.x | sudo bash -
sudo apt install nodejs
# https://yarnpkg.com/lang/en/docs/install/
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
# make config/database.yml functional
sudo vi /lib/systemd/system/mysql.service # add --skip-grant-tables to ExecStart
sudo systemctl daemon-reload
sudo systemctl restart mysql
mysql -uroot
mysql> use mysql;
mysql> update user set authentication_string=PASSWORD('') where User='root';
mysql> update user set plugin='mysql_native_password' where User='root';
mysql> flush privileges;
sudo vi /lib/systemd/system/mysql.service # remove --skip-grant-tables from ExecStart
sudo systemctl daemon-reload
sudo systemctl restart mysql
foreman start
- MySQL's time_zone must be UTC.