Updated installation instructions
This commit is contained in:
parent
9c0b5c53f4
commit
37114a80d9
65
README.md
65
README.md
@ -8,36 +8,7 @@
|
||||
* Install [Go](https://golang.org/dl/) (1.9 or higher)
|
||||
* Install [Aerospike](http://www.aerospike.com/download) (3.14.0 or higher)
|
||||
|
||||
### Database
|
||||
|
||||
* Remove all namespaces in `/etc/aerospike/aerospike.conf`
|
||||
* Add a namespace called `arn`:
|
||||
|
||||
```
|
||||
namespace arn {
|
||||
storage-engine device {
|
||||
file /home/YOUR_NAME/YOUR_PATH/notify.moe/db/arn-dev.dat
|
||||
filesize 60M
|
||||
data-in-memory true
|
||||
|
||||
# Maximum object size. 128K is ideal for SSDs but we need 1M for search indices.
|
||||
write-block-size 1M
|
||||
|
||||
# Write block size x Post write queue = Cache memory usage (for write block buffers)
|
||||
post-write-queue 16
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
* Start the database using `sudo service aerospike start`
|
||||
* Confirm that the status is "green": `sudo service aerospike status`
|
||||
|
||||
### Hosts
|
||||
|
||||
* Add `127.0.0.1 arn-db` to `/etc/hosts`
|
||||
* Add `127.0.0.1 beta.notify.moe` to `/etc/hosts`
|
||||
|
||||
### Download repository
|
||||
### Download the repository and its dependencies
|
||||
|
||||
* `go get github.com/animenotifier/notify.moe`
|
||||
|
||||
@ -51,8 +22,38 @@ namespace arn {
|
||||
### Build all
|
||||
|
||||
* Run `make all`
|
||||
* Run `make ports` to set up local port forwarding (80 to 4000, 443 to 4001)
|
||||
* You should be able to start the server using `run` now
|
||||
* Run `make ports` to set up local port forwarding *(80 to 4000, 443 to 4001)*
|
||||
* You should be able to start the server by executing `run` now
|
||||
|
||||
### Database
|
||||
|
||||
* Remove all namespaces in `/etc/aerospike/aerospike.conf`
|
||||
* Add a namespace called `arn`:
|
||||
|
||||
```
|
||||
namespace arn {
|
||||
storage-engine device {
|
||||
file /home/YOUR_NAME/YOUR_PATH/notify.moe/db/arn-dev.dat
|
||||
filesize 64M
|
||||
data-in-memory true
|
||||
|
||||
# Maximum object size. 128K is ideal for SSDs but we need 1M for search indices.
|
||||
write-block-size 1M
|
||||
|
||||
# Write block size x Post write queue = Cache memory usage (for write block buffers)
|
||||
post-write-queue 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
* Download the [database for developers](https://mega.nz/#!iN4WTRxb!R_cRjBbnUUvGeXdtRGiqbZRrnvy0CHc2MjlyiGBxdP4) to notify.moe/db/arn-dev.dat
|
||||
* Start the database using `sudo service aerospike start`
|
||||
* Confirm that the status is "green": `sudo service aerospike status`
|
||||
|
||||
### Hosts
|
||||
|
||||
* Add `127.0.0.1 arn-db` to `/etc/hosts`
|
||||
* Add `127.0.0.1 beta.notify.moe` to `/etc/hosts`
|
||||
|
||||
### HTTPS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user