readme added finally and sample systemd service file
This commit is contained in:
parent
fe428565f5
commit
8d70e670ee
23
README.md
Normal file
23
README.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# waifurudor.de
|
||||
|
||||
It's like foxrudor.de for anime girls, but worse
|
||||
|
||||
## Server Install
|
||||
Clone the repo to where ever you will be hosting this and run the following command to install the dependencies.
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
Now that the dependencies are taken care of you can verify it runs with `npm start` in the root directory of the project. If it tells you it is listening on a port you're probably good to go.
|
||||
|
||||
## Running as a service
|
||||
I don't know anything so I spent some time (10 minutes) creating the provided sample systemd service file.
|
||||
|
||||
The user in the file needs accesss to the assets directory under `./waifurudor.de/src/public/` so the """app""" can pull images from Danbooru.
|
||||
|
||||
## Nginx
|
||||
Yeah I set up a .conf file for this for my test instance but it sucks and you could probably do better so I won't share it just know it is possible to actually run this as a website.
|
||||
|
||||
### What's next
|
||||
I have some small improvements in mind before I give up and call this "done".
|
14
waifurudor.de.service
Normal file
14
waifurudor.de.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=waifurudor.de
|
||||
|
||||
[Service]
|
||||
ExecStart=npm start
|
||||
Restart=always
|
||||
User=none
|
||||
Group=nogroup
|
||||
Environment=PATH=/usr/bin:/usr/local/bin
|
||||
Environment=NODE_ENV=production
|
||||
WorkingDirectory=/whatever/user/waifurudor.de/src/
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in a new issue