Skip to content

Commit 4f50661

Browse files
committed
fix: ext_name is used in the directory structure
The service name is taken from the file e.g. event_store.service so if ext_name has hyphens these won't match up and we'll get errors like LifecycleEvent - AfterInstall Script - bin/deploy-extract-release [stdout]==> Removing previous release /srv/event-store/current [stdout]==> Extracting release from tar file /opt/codedeploy-agent/deployment-root/5b9577ac-428f-4dbf-82ce-79d9fe70d88a/d-7N1LS0I86/deployment-archive/bin/../event_store.tar.gz Script - bin/deploy-set-perms Script - bin/deploy-enable [stdout]==> Enabling systemd unit event_store [stderr]Failed to enable unit: Unit file event_store.service does not exist.
1 parent 1f31a75 commit 4f50661

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/mix/tasks/deploy.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ defmodule Mix.Tasks.Deploy do
2525

2626
service_name = app_name |> to_string()
2727

28-
ext_name =
29-
app_name
30-
|> to_string
31-
|> String.replace("_", "-")
28+
ext_name = app_name
3229

3330
module_name =
3431
app_name

0 commit comments

Comments
 (0)