fixes
This commit is contained in:
parent
44d43e6442
commit
34a9619317
|
@ -59,17 +59,17 @@
|
|||
- name: 'migrate django im app'
|
||||
django_manage:
|
||||
command: migrate
|
||||
app_path: "{{im_home}}"
|
||||
app_path: "{{im_home}}/im"
|
||||
|
||||
- name: 'create superjuser for django im app'
|
||||
django_manage:
|
||||
command: "createsuperuser --noinput --username=admin --email={{im_admin_email}}"
|
||||
app_path: "{{im_home}}"
|
||||
app_path: "{{im_home}}/im"
|
||||
|
||||
- name: 'collect static content'
|
||||
django_manage:
|
||||
command: "collectstatic"
|
||||
app_path: "{{im_home}}"
|
||||
app_path: "{{im_home}}/im"
|
||||
|
||||
- name: "Service im"
|
||||
service:
|
||||
|
|
|
@ -26,7 +26,7 @@ SECRET_KEY = '{{im_secret_key}}'
|
|||
DEBUG = False
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
{{im_domain}}
|
||||
'{{im_domain}}'
|
||||
]
|
||||
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
---
|
||||
# vars file for im
|
||||
im_home: /home/im
|
||||
im_secret_key: "{{ lookup('password', im_home + '/.imsecretfile chars=ascii_letters' length=56) }}"
|
||||
im_secret_key: "{{ lookup('password', im_home + '/.imsecretfile chars=ascii_letters length=56') }}"
|
||||
im_domain: 'localhost'
|
||||
im_db_name: 'im'
|
||||
im_db_user: 'im'
|
||||
im_user: 'im'
|
||||
im_db_server: 'localhost'
|
||||
im_db_port: '5432'
|
||||
im_db_password: ''
|
||||
im_workers: 4
|
||||
im_http_listen: 'localhost'
|
||||
im_http_port: 80
|
||||
|
|
Loading…
Reference in New Issue