v0.0.1
This commit is contained in:
16
templates/systemd.j2
Normal file
16
templates/systemd.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=Wiki.js {{ item.name }}
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart={{ wikijs_nvm_path }}v{{ wikijs_nvm_ver }}/bin/node server
|
||||
Restart=always
|
||||
# Consider creating a dedicated user for Wiki.js here:
|
||||
#User=wikijs
|
||||
Environment=NODE_ENV=production
|
||||
WorkingDirectory={{ item.path | default(wikijs_path_default) }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user