Initial deploy for systemd fails since #47
Closed this issue · 0 comments
roback commented
When deploying an app for the first time there is no systemd target to stop at
capistrano-twingly/lib/capistrano/twingly/tasks/service.rake
Lines 24 to 32 in 11c33c4
sudo stderr: Failed to stop twingly-test.target: Unit twingly-test.target not loaded.
We should only run systemctl stop
if the target can be found (ie. the application has been deployed before). I'm sure there is a good way to determine if that is true.
This bug was introducced in #47