... | ... | @@ -2,7 +2,7 @@ |
|
|
* Install WSL
|
|
|
* Install packages by running the following:
|
|
|
|
|
|
```
|
|
|
```sh
|
|
|
sudo apt update
|
|
|
sudo apt upgrade
|
|
|
sudo apt install libsqlite3-dev \
|
... | ... | @@ -24,37 +24,30 @@ imagemagick |
|
|
* Run `rbenv init` and do what it says (append to bashrc)
|
|
|
* Run `rbenv install 2.7.2`
|
|
|
* Run `source ~/.bashrc`
|
|
|
* 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"
|
|
|
```
|
|
|
* Install elasticsearch and set it up (see [Elasticsearch Setup](elasticsearch-setup))
|
|
|
|
|
|
## Installing packages
|
|
|
* Run the following to install the package manager
|
|
|
```
|
|
|
```sh
|
|
|
sudo gem install bundle
|
|
|
sudo gem install bundler
|
|
|
```
|
|
|
|
|
|
* Check out the repository (recommended: on a Windows location) and cd to it in WSL. Then run:
|
|
|
```
|
|
|
```sh
|
|
|
bundle config set path 'vendor/bundle'
|
|
|
bundle install
|
|
|
```
|
|
|
|
|
|
* Fix puma by running:
|
|
|
```
|
|
|
```sh
|
|
|
mkdir tmp
|
|
|
mkdir tmp/pids
|
|
|
```
|
|
|
|
|
|
## Setup open mail previews
|
|
|
To be able to see email previews you have to set a method for WSL to open your browser. You can do so by running the following (only run it once!):
|
|
|
```
|
|
|
```sh
|
|
|
echo '#!/bin/bash' >> ~/.local/bin/wslopen
|
|
|
echo '/mnt/c/Windows/explorer.exe "file://$(wslpath -m ${1/"file://"/})"' >> ~/.local/bin/wslopen
|
|
|
chmod +x ~/.local/bin/wslopen
|
... | ... | |