Skip to content

Commit 2ca8d83

Browse files
committed
Fix #3: Check conf.dev_path is valid
1 parent 403ebf4 commit 2ca8d83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
# Deploys a Django app to Plesk
33

4+
- name: Check that project path in dev as specified in configuration is valid and has wsgi script
5+
local_action: stat path={{ conf.dev_path }}/index.wsgi
6+
register: check_dev_path
7+
fail_when: check_dev_path.stat.exists == False
8+
49
- name: Set Python executable
510
set_fact: python="`which python{{ conf.python_version | default('3.5') }}`"
611

0 commit comments

Comments
 (0)