Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bgpat/isucon-boilerplate


https://github.com/bgpat/isucon-boilerplate

Last synced: 28 days ago
JSON representation

Awesome Lists containing this project

README

        

# isucon-boilerplate

## usage

### initialize

#### from local PC

**create a new repository**

Create a new repository from https://github.com/bgpat/isucon-boilerplate/generate.

**add members**

Invite your team members from https://github.com/$GITHUB_REPOSITORY/settings/access.
After them have confirmed, run [Update SSH Keys](https://github.com/$GITHUB_REPOSITORY/actions?query=workflow%3A%22Update+SSH+Keys%22).

#### in each competition server

Run following commands by `root` user.

**generate and register ssh deploy key**

```bash
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub
```

Copy the result and register as a [deploy key](https://github.com/$GITHUB_REPOSITORY/settings/keys/new).

**install**

```bash
cd /
git init
git remote add origin [email protected]:$GITHUB_REPOSITORY.git
git fetch origin master
git reset --hard FETCH_HEAD
make
```

Add deploy key and run `git push -u origin master`.

### run monitoring servers

```bash
make monitoring
```

Access to 3999 port from your browser.

### edit config file

```bash
vim /etc/nginx/nginx.conf
```

### track source files by git

```bash
git add -f *.go
```