~ols/talks

fbed3115083b9ba77d37af2ed862ec8aba54647f — Oliver Leaver-Smith 9 months ago 9a9381d
add slide about system unit file
1 files changed, 22 insertions(+), 0 deletions(-)

M talks/you-did-what/slides.md
M talks/you-did-what/slides.md => talks/you-did-what/slides.md +22 -0
@@ 51,6 51,28 @@ drwxr-xr-x. 6 deploy deploy 4096 Jul 15 09:30 v3.0.6

---

# systemd

Contents of the directories

```
# ls /local/app/code/current/app/src
lib index.js
```

`systemd` unit file

```
# cat /etc/systemd/system/app.service
[Service]
ExecStart = /usr/local/bin/node src/index.js --port=8000
Restart = always
WorkingDirectory = /local/app/code/current/app
Environment = NODE_ENV=production
```

---

# 12 factors, what?

Config