[fix] role:espe_backend

This commit is contained in:
roydfalk 2024-06-08 10:53:22 +02:00
parent 28d994e033
commit e44244ebd7
3 changed files with 6 additions and 3 deletions

View file

@ -7,7 +7,8 @@
"pkg": [
"git",
"make",
"rsync"
"rsync",
"nodejs"
]
}
},

View file

@ -16,7 +16,7 @@
{% if var_espe_backend_database_kind == 'postgresql' %}
"kind": "postgresql",
"data": {
"host": "{{var_espe_backend_database_data_postgresql_host}}"
"host": "{{var_espe_backend_database_data_postgresql_host}}",
"port": {{var_espe_backend_database_data_postgresql_port | string}},
"username": "{{var_espe_backend_database_data_postgresql_username}}",
"password": "{{var_espe_backend_database_data_postgresql_password}}",

View file

@ -3,9 +3,11 @@ Description=Espe
After=network.target
[Service]
ExecStart={{var_espe_backend_directory}}/espe serve
WorkingDirectory={{var_espe_backend_directory}}
ExecStart=./espe serve
Type=simple
Restart=always
User={{var_espe_backend_user}}
[Install]
WantedBy=default.target