... | ... | @@ -53,15 +53,21 @@ 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!):
|
|
|
```
|
|
|
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
|
|
|
echo 'export BROWSER="wslopen"' >> ~/.bashrc
|
|
|
```
|
|
|
|
|
|
## Setup RubyMine
|
|
|
* Go to File, Settings, Languages & Frameworks, Ruby SDK and Gems
|
|
|
* Click + and add a new remote, WSL, `/home/<yourname>/.rbenv/versions/2.7.2/bin/ruby`
|
|
|
|
|
|
## Create the database (first time only)
|
|
|
* `bundle exec rake db:setup`
|
|
|
|
|
|
|
|
|
## Running the server
|
|
|
* Ensure elasticsearch is running: `sudo service elasticsearch start`
|
|
|
* Create the database (first time only): `bundle exec rake db:setup`
|
|
|
* Start the server: `bundle exec puma`
|
|
|
* Go to `localhost:3000` to see the page. |
|
|
\ No newline at end of file |