|
|
## Setting up Ruby
|
|
|
* Install RubyMine
|
|
|
* Install WSL
|
|
|
* Install packages by running the following:
|
|
|
|
|
|
```
|
|
|
sudo apt update
|
|
|
sudo apt upgrade
|
|
|
sudo apt install libsqlite3-dev \
|
|
|
libmysqlclient-dev \
|
|
|
libglpk-dev \
|
|
|
build-essential \
|
|
|
git \
|
|
|
libreadline-dev \
|
|
|
libssl-dev \
|
|
|
zlib1g-dev \
|
|
|
rbenv \
|
|
|
ruby2.7-dev \
|
|
|
apt-transport-https \
|
|
|
nodejs \
|
|
|
npm
|
|
|
```
|
|
|
|
|
|
* Run `rbenv init` and do what it says (append to bashrc)
|
|
|
* Run `rbenv install 2.7.2`
|
|
|
|
|
|
## Installing packages
|
|
|
* Run the following to install the package manager
|
|
|
```
|
|
|
sudo gem install bundle
|
|
|
sudo gem install bundler
|
|
|
```
|
|
|
|
|
|
* Go to checked out repository (check it out on a non WSL location)
|
|
|
```
|
|
|
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"
|
|
|
``` |