File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 25
25
26
26
- when : deploy_type == "upgrade"
27
27
name : get app version
28
- command : bash -lc 'mix run -e \'IO.puts Mix.Project.config[:version]\'' chdir="{{ project_path }}"
28
+ command : bash -lc "mix run -e 'IO.puts Mix.Project.config[:version]'" chdir="{{ project_path }}"
29
+ remote_user : " {{ deployer }}"
29
30
register : app_version
30
31
31
32
33
+ - when : deploy_type == "upgrade"
34
+ name : set upgrade command
35
+ set_fact : upgrade_command='rel/{{ app_name }}/bin/{{ app_name }} upgrade "{{ app_version.stdout }}"'
36
+
37
+
32
38
- when : deploy_type == "upgrade"
33
39
name : upgrade app
34
- command : bash -lc 'PORT={{ app_port}} rel/{{ app_name }}/bin/{{ app_name }} upgrade "{{ app_version.stdout }}"' chdir="{{ project_path }}"
40
+ command : bash -lc "{{ upgrade_command }}" chdir="{{ project_path }}"
35
41
remote_user : " {{ deployer }}"
36
42
environment :
37
43
MIX_ENV : " {{ mix_env }}"
44
+ PORT : " {{ app_port }}"
You can’t perform that action at this time.
0 commit comments