some services like systemd are very finicky about file names and links, and will not work with distman symlinks, for example this will not work with systemd:
/etc/systemd/system/app.service -> versions/app.service.0.abc123
because the link target is named app.service.0.abc123 (it has to send in .service).
how to handle this?
- option 1: support different dist operations, like copy, hardlnk, etc
- option 2: dist a folder, and link into the folder:
"services": {
"source": "services",
"destination": "{DEPLOY_ROOT}/services",
"new directive here": {..}
},
so that it would create:
/etc/systemd/system/myapp.service -> ${DEPLOY_ROOT}/versions/services.0.abc123/myapp.service
this could potentially depend on #55
some services like systemd are very finicky about file names and links, and will not work with distman symlinks, for example this will not work with systemd:
/etc/systemd/system/app.service -> versions/app.service.0.abc123because the link target is named
app.service.0.abc123(it has to send in .service).how to handle this?
so that it would create:
this could potentially depend on #55