... | ... | @@ -41,7 +41,7 @@ carton install --deployment --without=test --without=sqlite --without=postgresq |
|
|
|
|
|
Then:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
cp lstu.conf.template lstu.conf
|
|
|
# Edit the configuration file
|
|
|
vi lstu.conf
|
... | ... | @@ -53,7 +53,7 @@ There is the `contact` option (mandatory), where you have to put some way for th |
|
|
|
|
|
To use the cache system, configure `memcached_servers` setting like this (use the URL of your memcached server, of course):
|
|
|
|
|
|
```
|
|
|
```perl
|
|
|
memcached_servers => ['127.0.0.1:11211'],
|
|
|
```
|
|
|
|
... | ... | @@ -61,7 +61,7 @@ memcached_servers => ['127.0.0.1:11211'], |
|
|
|
|
|
This is good for test, not for production.
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
# start it
|
|
|
carton exec hypnotoad script/lstu
|
|
|
# reload it while running (yep, same command)
|
... | ... | @@ -83,7 +83,7 @@ You can start it manually with `make minion`, but it's better to start it as a s |
|
|
|
|
|
Unfortunately for SysVinit users, I only created a systemd service file:
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
sudo su
|
|
|
cp utilities/lstu-minion@.service /etc/systemd/system/
|
|
|
vi /etc/systemd/system/lstu-minion@.service
|
... | ... | @@ -104,7 +104,7 @@ Start with one worker, and add one if it's not enough to process the queue quick |
|
|
|
|
|
### Systemd
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
sudo su
|
|
|
cp utilities/lstu.service /etc/systemd/system/
|
|
|
vi /etc/systemd/system/lstu.service
|
... | ... | @@ -115,7 +115,7 @@ systemctl start lstu.service |
|
|
|
|
|
### SysVinit
|
|
|
|
|
|
```
|
|
|
```shell
|
|
|
sudo su
|
|
|
cp utilities/lstu.default /etc/default/lstu
|
|
|
vi /etc/default/lstu
|
... | ... | |