|
|
## Setting up Ruby
|
|
|
## Setting up Ruby and libraries
|
|
|
* Install RubyMine
|
|
|
* Install WSL
|
|
|
* Install packages by running the following:
|
... | ... | @@ -25,6 +25,15 @@ imagemagick |
|
|
* Run `rbenv init` and do what it says (append to bashrc)
|
|
|
* Run `rbenv install 2.7.2`
|
|
|
|
|
|
* Install elasticsearch and let it use max 2 GB RAM:
|
|
|
```
|
|
|
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
|
|
|
sudo apt-get install apt-transport-https
|
|
|
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
|
|
|
sudo apt-get update && sudo apt-get install elasticsearch
|
|
|
sudo echo -e "-Xms2g\n-Xmx2g" > /etc/elasticsearch/jvm.options.d/lowram.jvm.options"
|
|
|
```
|
|
|
|
|
|
## Installing packages
|
|
|
* Run the following to install the package manager
|
|
|
```
|
... | ... | @@ -32,22 +41,13 @@ sudo gem install bundle |
|
|
sudo gem install bundler
|
|
|
```
|
|
|
|
|
|
* Go to checked out repository (check it out on a non WSL location)
|
|
|
* Check out the repository (recommended: on a Windows location) and cd to it in WSL. Then run:
|
|
|
```
|
|
|
bundle config set path 'vendor/bundle'
|
|
|
bundle install
|
|
|
```
|
|
|
|
|
|
* Install elasticsearch
|
|
|
```
|
|
|
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
|
|
|
sudo apt-get install apt-transport-https
|
|
|
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list
|
|
|
sudo apt-get update && sudo apt-get install elasticsearch
|
|
|
sudo echo "-Xms2g -Xmx2g" > /etc/elasticsearch/jvm.options.d/jvm.options"
|
|
|
```
|
|
|
|
|
|
* Fix puma
|
|
|
* Fix puma by running:
|
|
|
```
|
|
|
mkdir tmp
|
|
|
mkdir tmp/pids
|
... | ... | |