Reverted installation changes

This commit is contained in:
Eduard Urbach 2017-10-26 00:04:32 +02:00
parent 47e845f892
commit c87bc71f89

View File

@ -7,6 +7,7 @@
* Install a Debian based operating system * Install a Debian based operating system
* Install [Go](https://golang.org/dl/) (1.9 or higher) * Install [Go](https://golang.org/dl/) (1.9 or higher)
* Install [TypeScript](https://www.typescriptlang.org/) (2.5 or higher) * Install [TypeScript](https://www.typescriptlang.org/) (2.5 or higher)
* Install [Aerospike](http://www.aerospike.com/download) (3.14.0 or higher)
### Download the repository and its dependencies ### Download the repository and its dependencies
@ -18,19 +19,40 @@
* Run `make all` * Run `make all`
* Run `make ports` to set up local port forwarding *(80 to 4000, 443 to 4001)* * Run `make ports` to set up local port forwarding *(80 to 4000, 443 to 4001)*
### 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 300M
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 (get in contact with me to receive a link)
* Start the database using `sudo service aerospike start`
* Confirm that the status is "green": `sudo service aerospike status`
### Hosts ### Hosts
* Add the following lines to `/etc/hosts`: * Add `127.0.0.1 arn-db` to `/etc/hosts`
* Add `127.0.0.1 beta.notify.moe` to `/etc/hosts`
```
45.32.159.101 arn-db
127.0.0.1 beta.notify.moe
```
### HTTPS ### HTTPS
* [Create the certificate](https://stackoverflow.com/questions/10175812/how-to-create-a-self-signed-certificate-with-openssl) `notify.moe/security/fullchain.pem` (domain: `beta.notify.moe`) * Create the certificate `notify.moe/security/fullchain.pem` (domain: `beta.notify.moe`)
* Create the private key `notify.moe/security/privkey.pem` (make sure it's decoded) * Create the private key `notify.moe/security/privkey.pem`
### API keys ### API keys