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