... | ... | @@ -18,7 +18,8 @@ rbenv \ |
|
|
ruby2.7-dev \
|
|
|
apt-transport-https \
|
|
|
nodejs \
|
|
|
npm
|
|
|
npm \
|
|
|
imagemagick
|
|
|
```
|
|
|
|
|
|
* Run `rbenv init` and do what it says (append to bashrc)
|
... | ... | @@ -45,3 +46,18 @@ echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee |
|
|
sudo apt-get update && sudo apt-get install elasticsearch
|
|
|
sudo echo "-Xms2g -Xmx2g" > /etc/elasticsearch/jvm.options.d/jvm.options"
|
|
|
```
|
|
|
|
|
|
* Fix puma
|
|
|
```
|
|
|
mkdir tmp
|
|
|
mkdir tmp/pids
|
|
|
```
|
|
|
|
|
|
## Create the database (first time only)
|
|
|
* `bundle exec rake db:setup`
|
|
|
|
|
|
|
|
|
## Running the server
|
|
|
* Ensure elasticsearch is running: `sudo service elasticsearch start`
|
|
|
* Start the server: `bundle exec puma`
|
|
|
* Go to `localhost:3000` to see the page. |
|
|
\ No newline at end of file |